Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Javascript links slowed down pageload speed by several seconds


scooterdude - 4:27 pm on Aug 1, 2012 (gmt 0)


Here it is, I got this code to work even tho it was slow,

<script type = "text/javascript">
<!--hide
function otherlinks(myurl)
{
window.open(myurl,'jav','width=1000,height=750,resizable=yes');
}
function myfunction(n)
{
switch(n)
{
case 0:
window.open('http://www.site0.com/','jav','width=1000,height=750,resizable=yes');
break;
case 1:
window.open('http://www.site1.com/','jav','width=1000,height=750,resizable=yes');
break;
case 2:
window.open('http://www.site2.com/','jav','width=1000,height=750,resizable=yes');
break;
case 3:
window.open('http://www.site3.com/','jav','width=1000,height=750,resizable=yes');
break;
case 4:
window.open('http://www.site4.com/','jav','width=1000,height=750,resizable=yes');
break;
default:

}
}
//-->
</script>

Link code is like

<A HREF="javascript:myfunction()" >Click Here!</A>


And yes I found the code online and adapted it, now it slows down the site I lurve js :)


Thread source:: http://www.webmasterworld.com/javascript/4480900.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com