If the connection with the network is slow, which is typical for mobile and remote users, load slows down, causing justifiable irritation.
Synchronous loading script
HTML5 prudently attended to the problem loading page "Java." It is possible to install an asynchronous download script, which increases the speed of displaying the resource at times. To do this html-code to add parameters async or defer, as indicated below:
What is the difference between the attributes of async and defer?
Async attribute will run it immediately after a full load, but will miss the download window.
However, these attributes do not work in today's browsers. For example, InternetExplorer does not support async attribute and defer. A string document.write no help files script.js
To use this script, simply replace
Then, plug the script file extsrc.js
We get the following code:
"http://extsrcjs.googlecode.com/svn/trunk/extsrc.js" ></ script > <Script src = "http://extsrcjs.googlecode.com/svn/trunk/extsrc.js"> </ script> "...." ></ script > <Script extsrc = "...."> </ script>
Unfortunately, this method is also not suitable for files with document.write
This method is suitable for all browsers, without exception, and even works with document.write
In the html-code of the page create an empty div-block:
"script_block" class = "script_block" >< / div > <Div id = "script_block" class = "script_block"> </ div>
And at the end of the html-code before </ body>, insert script for asynchronous loading:
Hosting and VPS that will never slow down
I recommend the fastest VPS on German servers for a reasonable price - FastVPS
- Setting the Save button Vkontakte
- Quick installation of the Facebook Like button
- Inferno Solutions: the best for a successful webmasters
- Free services to create a color scheme site
- What is the level domain name
- Seo internet traffic records
- The difference between the file server from the mail