I'm trying to speed up a WordPress website which uses Visual Composer plugin. In GTmetrix result I see this:
Serve resources from a consistent URL
https://example.com/wp-content/uploads/2015/02/sfondo_form.jpg?id=15129
The image with query string ?id=XXX
is background of a column in Visual Composer. How can I disable it?
All these queries are in the VC custom shortcode. Check the picture below:
Background styles save in
post_meta
table. Here is how VC add custom CSS in a page body:So we can filter
post_meta
value and VC output as we want:Alternatively, you can use
the_content
filter to remove?id=XXXX
from background images in document body.