Many sites will add a lot of JS code, which is the statistics Ah, advertising code, such as a large number of JS code, such as the use of a XX alliance most of the time to open the Web page when the ads are displayed in the load of the alliance, which seriously affected the user's experience. Is there any way to speed up the loading of JS? Below the cheap bar on the introduction let JS file loading speed of the graphics and text tutorial.
First, most of the JS calling code is:
<script src= "Xxxx.js" ></script>
Just change the code to the following code to speed up loading
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.