Hi Noahj,
Composer, in ths context, is a package manager for PHP, not Visual Composer. I’m not familiar with how Visual Composer creates markup for image elements.
Joe
Ok, question.
I’m new to this src set thing.
How do I actually check that it is working?
On localhost, I looked at the source and it seemed to be there, as I can see the src set applied, which was different without RICG activated, but I get the same image size when I resize my browser to a smaller size and even refresh it at that smaller size.
Here is a screenshot of my source code with RICG activated:
http://private.epri.se/12U8r/2akQkphD
It does look like the plugin is adding srcset and sizes attributes to your image. However, for those values to have any useful affect, you need to have additional image sizes available using the same aspect ratio. From your example, I’m guessing the images being used are a custom image size, and a very large size at that. I’m not certain how the image size is being selected in your specific context, but you should see a great deal of benefit by defining some custom image sizes, using add_image_size() in your functions.php, to automatically create smaller versions of your 4096×2616 files.
For example, something like this:
add_image_size( 'vc_single_image_sm', 450, 287, true);
add_image_size( 'vc_single_image_md', 900, 575, true);
Should result in a srcset containing three sources. In this case, your sizes attribute could still use some tweaking, but this will help.
Joe