<html> <head></head> <body> <!-- All your kewl content goes here --> <!-- Append javascript programatically so we don't make needless http requests --> <script> (function(doc){ var appendScripts = function(srcs) { if (src = srcs.shift()) { var scriptTag = doc.createElement('SCRIPT'); scriptTag.src = src; scriptTag.onload = function(){appendScripts(srcs)}; doc.body.appendChild(scriptTag); } } var goodBrowser = function() { // Return true if browser passes all feature tests return true; } if(goodBrowser()) { appendScripts([ './js/script1.js', './js/script2.js' ]); } })(document); </script> </body> </html>