Best approach? Divi HTML Lazy Load Selectors
-
I am using LiteSpeed to optimize a Divi site and am trying to configure LiteSpeed so that all sections below the fold will be lazy loaded. For the first page, I pulled the selectors for all sections below the folder using Chrome developer tools, and then just pasted them into the list of selectors. It made an immediate and dramatic jump in speed.
However, configuring LiteSpeed like this for every page seems unnecessarily laborious as I continue to optimize the other pages on the site. For example I currently have the following two selectors on my list:
post-1466 > div > div > div > div.et_pb_section.et_pb_section_8.et_pb_with_background.et_section_regular
post-1567 > div > div > div > div.et_pb_section.et_pb_section_8.et_pb_with_background.et_section_regular
Is there a way to specify objects across pages, e.g. sections 8 through 17 on each page? Or would it be better to add a class to all sections below the fold and use that to select them? If the latter, what would the syntax be?
This is my first time using LiteSpeed, so if I am approaching this in the wrong way, feel free to suggest a different approach altogether.
Thank you in advance
- You must be logged in to reply to this topic.