Changes between Version 8 and Version 9 of QtWebKitGraphics
- Timestamp:
- Nov 3, 2010, 6:15:58 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QtWebKitGraphics
v8 v9 3 3 This page holds tips for web developers on how to optimize their web-code for QtWebkit's rendering pipeline. 4 4 The philosophy behind those performance tips is that web technologies in general are meant for dynamic '''content''' and not for dynamic '''UI'''. Therefore, most of the HTML and CSS features are optimized for exactly that. When something is slow, ask yourself: am I trying to solve a dynamic-UI problem with a tool meant for dynamic-content? 5 5 6 The good news is that CSS has enough capabilities for dynamic UI, even if they're not as smooth to use as solutions originally optimized for GUI. 6 7 … … 34 35 Be careful of high-level object-oriented nicely-designed Javascript libraries on top of the core Webkit (like Dojo or jQuery, hence the $). They make the application code look nicer, but make it hard to find the source of a performance problem, as it adds layers of complexity. 35 36 36 If you think about what those libraries really give you, it's browser compatibility, rapid DOM element selection, and effects. If browser compatibility is what you need - those libraries are great and are definitely worth it but you might have to incur the performance compromise. rapid DOM selection can be done with document.querySelector or document.querySelectorAll, which are much faster than the browser-compatible functions. effects, if can't be expressed with CSS animations, would probably end up being slow anyway.37 If you think about what those libraries really give you, it's browser compatibility, rapid DOM element selection, and effects. If browser compatibility is what you need - those libraries are great and are definitely worth it but you might have to incur the performance compromise. Rapid DOM selection can be done with document.querySelector or document.querySelectorAll, which are much faster than the browser-compatible functions. Effects, if can't be expressed with CSS animations, would probably end up being slow anyway. 37 38 38 39 … … 64 65 65 66 66 == Benchmarking CSS animations ==67 == Benchmarking CSS animations == 67 68 I've attached a comprehensive CSS animation test suite to this document: https://trac.webkit.org/raw-attachment/wiki/QtWebKitGraphics/cssAnimTestSuite.html 68 69 Good luck!