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)
Built-in PHP DOMDocument is used as considered reliable and fastest due to its native implementation. The built-in fast native PHP DOMXPath library is used to search for items.
- 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.