Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Calling a .js that is 12.9mb


daveVk - 10:58 pm on Dec 28, 2012 (gmt 0)


My suggestion was to do it on the server using say PHP, not in the javascript.

If you can not do it on the server then try

in head section replace

<script type="text/javascript" src="http://www.mydomain.com/machoRand.js"></script>

with

<script type="text/javascript">
function insertRandomScript() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'machoRand' + Math.floor(Math.random()*
10) + '.js'; // for 0 to 9
document.getElementsByTagName('head')[0].appendChild(script);
}
</script>

then on body tag

<body onload="insertRandomScript()">


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