Skip to content

GenerateBlocks Container Background Image Not Optimized When Selector is Set to Pseudo Element #842

@kushh23

Description

@kushh23

Description

A user reported that their GenerateBlocks's homepage container background image was not being optimized by Optimole. Upon investigation, I discovered that under the background image option, there is a setting of Selector; when it is set to "Pseudo Element," it prevents Optimole from optimizing the image. However, switching the option to "Element" allows Optimole to optimize it as expected.

Could we investigate whether this issue originates from our side or theirs? If it's on our end, we should address it to ensure compatibility. In the meantime, I have advised the user to set the option to "Element."

Step-by-step reproduction instructions

  1. Install and activate the GenerateBlocks and Optimole plugins.
  2. Add a container using GenerateBlocks and Set the container background image option to "Pseudo Element."
  3. Check whether the image is optimized by Optimole (it will not be).
  4. Change the Selector option to "Element."
  5. Check if the image is now optimized by Optimole (it will be).

Screenshots, screen recording, code snippet or Help Scout ticket

Reported here - https://secure.helpscout.net/conversation/2725973401/436218?viewId=2353196

Image
Image
Image

Environment info

No response

Is the issue you are reporting a regression

No

Metadata

Metadata

Labels

3rd-part-compatibilitiesIssue or feature related to a compatibility with a 3rd party product.bugThis label could be used to identify issues that are caused by a defect in the product.customer reportIndicates the request came from a customer.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions