Inside the site will load some JS code, statistics Ah, Baidu ads and so on, the results of the page loading speed is very slow, there is a good solution, you can refer to the following
Usually our website will load some JS code, statistics ah, Google ads Ah, Baidu Alliance Ah, Ali mother Advertising code Ah, a heap, and finally make the page loading speed is very slow, very slow . solution: To change a JS contains the way, so that JavaScript loading speed doubled. Put the usual load mode: code as follows: <script src= "Xxxx.js" ></script> changed to: code as follows: < Script type= "Text/javascript" > document.write ("<SCR" + "IPT src=" Xxx.js "></sc" + "ript>") </script> If you want to load more than one JS, you can use the following method code as follows: <script type= "Text/javascript" > document.write ("<SCR" + "IPT src=" Xxx1.js "></sc" + "ript>"); document.write ("<SCR" + "IPT" Src= "Xxx2.js" ></SC + "ript>"); document.write ("<SCR" + "IPT src=" Xxx3.js "></sc" + "ript>") ; </script> Other JS do the same, advertising, page effects ... Finally a few more nonsense: with code as follows: <<script type= "Text/javascript" >> document.write (" <<SCR "+" IPT src= "Xxx.js" ></sc "+" ript>> ") <</script>> Way, can also be achieved on demand according to the conditions to load the JS file you want to: code as follows:; <script type= "Text/javascript" >> if (in good mood) {document.write ("<<SCR" + "IPT src=" Xxx.js "></") SC "+" ript>> ")} <</script>>