Thoughts on browser content dual Buffering

Source: Internet
Author: User

To avoid blinking and improve user experience, the graphic interface software uses dual buffering. First, create an image object in the memory and then draw the user interface on the image, after all the content is drawn, the image will be drawn to the computer screen. This will greatly speed up the drawing of the interface on the screen and avoid flickering.

In the future, with the development of computer software and hardware, the browser can perform similar double buffering on its content. When loading a new page, the browser still maintains and displays the old page, it can be rolled, but does not process scripts and interface events. The browser loads a new page in the background, draws a new page style in the memory, and processes the initialization script of the new page. When the page and its associated content are loaded, quickly Replace the page view maintained in the memory with the old page view, which can greatly avoid flickering caused by refreshing.

At this time, the browser will maintain two pages when loading the new page. One is the view of the old page displayed on the computer screen, and the other is the maintenance of the new page continuously constructed in the memory. After the new page is loaded, the browser will discard the old page and quickly display the new page that has been loaded.

The browser can open interfaces, and the page script can set whether the browser adopts this loading mode, or enable the browser to switch pages without waiting until all the pages are loaded. You can set the page switching style, for example, direct switching, gradient, or graphic gradient animation effects such as flash. This is slower than the current loading mode, but it can reduce the flickering speed. In the future, the high speed of computer hardware and network can make up for this speed.

The above is the lower speaker.

Yuan Yongfu (http://www.xdesigner.cn)

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.