"Optimized Android WebView performance, continuous updates, updates with Discovery"

Source: Internet
Author: User
  1. Try to use less position:relative

    When doing a OTO project, the page slides up and down, shaking very badly;

    The main page is more pictures, began to think it is the cause of many pictures, but all the pictures are not loaded, or trembling;

    Later, remove all external CSS, immediately, after analysis, CSS is very simple, only position this property caused my attention, and finally, commented out all the position properties, sliding or very smooth, indicating that the problem is here;

    Finally, after one after another, unexpectedly is a footer element of the position:relative caused, removed, sliding very smooth, the interface layout is still normal, indicating that this property is basically useless.

  2. Use CSS attributes with the WebKit prefix as much as possible, and these properties are optimized
    For example: Webkit-scrollbar,
    -webkit-overflow-scrolling:touch; This allows us to build applications with a more native feel without needing to resort to a third party plugin.

"Optimized Android WebView performance, continuous updates, updates with Discovery"

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.