{"id":6466,"date":"2021-10-28T19:40:57","date_gmt":"2021-10-28T19:40:57","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=6466"},"modified":"2022-09-07T17:33:23","modified_gmt":"2022-09-07T17:33:23","slug":"structure-optimization-accel","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/docs\/wordpress\/accelerator\/how-does-it-work-accel\/structure-optimization-accel","title":{"rendered":"Full parsing of a page structure Accelerator for WordPress"},"content":{"rendered":"<p style=\"text-align:justify\">\n  The deeper structure control, the <strong>higher <\/strong>the loading speed. The entire structure of the page is fully parsed, which allows making the most effective optimizations. For example, it allows <a href=\".\/images-and-frames-lazy-loading-accel\">lean lazy loading of images and videos<\/a><span style=\"font-size:12pt\">.<\/span>\n<\/p>\n<p style=\"text-align:justify\">\n  Time-tested and popular libraries are used for parsing.\n<\/p>\n<ul>\n<li>\n<div style=\"text-align:justify\"><strong>Layout (HTML)<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      Built-in<span style=\"font-size:12pt\"> <\/span>PHP <a href=\"https:\/\/www.php.net\/manual\/class.domdocument.php\" rel=\"nofollow noopener\" target=\"_blank\">DOMDocument<\/a> is used as considered reliable and fastest due to its native implementation.<span style=\"font-size:12pt\"> <\/span>The built-in fast native PHP<span style=\"font-size:12pt\"> <\/span><a href=\"https:\/\/www.php.net\/manual\/class.domxpath.php\" rel=\"nofollow noopener\" target=\"_blank\">DOMXPath<\/a>\u00a0library is used to\u00a0search for items.\n    <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Styles (CSS)<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      Used well maintained <a href=\"https:\/\/github.com\/sabberworm\/PHP-CSS-Parser\" rel=\"nofollow noopener\" target=\"_blank\">PHP CSS Parser<\/a> library with\u00a0good code. It&#8217;s needed for minification and optimization. The well-supported <a href=\"https:\/\/github.com\/symfony\/css-selector\" rel=\"nofollow noopener\" target=\"_blank\">Symfony CSS Selector<\/a>\u00a0library is used to transform style selectors to <a href=\".\/xpath-elements-selector-accel\">XPath expressions<\/a>.\n    <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Scripts (JS)<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      Time-tested <a href=\"https:\/\/github.com\/mrclay\/jsmin-php\" rel=\"nofollow noopener\" target=\"_blank\">JsMin &#8211; Php<\/a> is used for minification.\n    <\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":6456,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[816],"tags":[163,870,871,165,818,869,154,689,872,692,92],"class_list":["post-6466","doc","type-doc","status-publish","hentry","category-accelerator","tag-cache","tag-css","tag-javascript","tag-minify","tag-optimize","tag-pagespeed","tag-performance","tag-plugin","tag-site","tag-speed","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/6466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/comments?post=6466"}],"up":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/6456"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/media?parent=6466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=6466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=6466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}