maybe this will help:
HTML without caption:
<img class=”aligncenter wp-image-3169 size-full” src=”http://www.donnaiveh.com/wp-content/uploads/2014/11/DSC_0723.jpg” alt=”DSC_0723″ width=”1024″ height=”602″ data-id=”3169″ />
HTML with caption:
[caption id="attachment_3169" align="aligncenter" width="1024"]<img class=”wp-image-3169 size-full” src=”http://www.donnaiveh.com/wp-content/uploads/2014/11/DSC_0723.jpg” alt=”DSC_0723″ width=”1024″ height=”602″ data-id=”3169″ /> TEST[/caption]
The image with caption shows fine in visual wordpress text editor, only low res in preview or live version of the post.
The HTML is auto-generated after adding the caption through the UI.
I know this is quite old, but I am having the same issue. Adding an image caption causes the fallback image to be loaded, and jquery does not switch images.
I have 3 media query formats:
all w300 (fallback image)
(min-width:420px) w552
(min-width:890px) w930
My screen is wider than 89opx.
When no image caption is present, this is how an image is rendered:
<span data-picture="" data-alt="some-alt-text" class="alignnone" data-width="1377" data-height="909">
<span data-src="http://website.com/slir/w300/wp-content/uploads/image.jpg" data-media="all"></span>
<span data-src="http://website.com/slir/w552/wp-content/uploads/image.jpg" data-media="(min-width:420px)"></span>
<noscript><img src="http://website.com/slir/w552/wp-content/uploads/image.jpg" class="alignnone" alt="some-alt-text" width="1377" height="909"></noscript>
<span data-src="http://website.com/slir/w930/wp-content/uploads/2015/03/image.jpg" data-media="(min-width:890px)"></span>
<img alt="Beni-and-Ioana" src="http://website.com/slir/w930/wp-content/uploads/image.jpg">
</span>
With caption:
<figure class="figure alignnone">
<img src="http://website.com/slir/w300/wp-content/uploads/image.jpg" alt="some-alt-text" width="1377" height="909"><figcaption>
<span data-src="http://website.com/slir/w930/wp-content/uploads/image.jpg" data-media="(min-width:890px)"></span> Caption Text</figcaption></figure>
<figcaption>
<span data-src="website.com/slir/w930/wp-content/uploads/image.jpg" data-media="(min-width:890px)"></span> Caption Text
</figcaption>
With caption, but without PB Responsive Images activated:
<figure class="figure alignnone">
<img src="http://website.com/wp-content/uploads/image.jpg" alt="some-alt-text" width="1377" height="909">
<figcaption>Caption Text</figcaption>
</figure>