There is no difference in the speed of inviting a webpage and a browser to access the webpage through a script

Source: Internet
Author: User
Is there any difference in the speed of inviting a webpage to access the webpage through a script? Is there any difference in the speed of accessing a webpage or a browser through a script? Is the script faster? Is there any difference in the speed of a browser accessing a webpage through a script?
Is there any difference in the speed of accessing a webpage or a browser through a script? Is the script faster? Share the browser script:
------ Solution --------------------
From the request to the client returned by the server, this can be considered the same.
However, the difference is that the browser should interpret html as visual text and execute css and js. Ignore
------ Solution --------------------
Browsers need to render and request more data (some are useless, such as advertisements)
The number of script requests is small. In theory, it is faster, but it depends on how the script is written. writing is slower than browsing.

However, scripts may not generate a full dom tree, because some dom nodes are generated by js. if the js engine is introduced, the development cost will be high (the browser has a built-in js engine to avoid this process)
------ Solution --------------------
The script request must be faster. it only obtains the returned HTML content and does not render it. The browser also needs to render the content,

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.