The deeper structure control, the higher the loading speed. The entire structure of the page is fully parsed, which allows making the most effective optimizations. For example, it allows lean lazy loading of images and videos.
Time-tested and popular libraries are used for parsing.
- Layout (HTML)
- Styles (CSS)
Used well maintained PHP CSS Parser library with good code. It’s needed for minification and optimization. The well-supported Symfony CSS Selector library is used to transform style selectors to XPath expressions.
- Scripts (JS)
Time-tested JsMin – Php is used for minification.