Support » Plugin: WP Retina 2x » Changing img src w/ jquery

  • Resolved bacoords

    (@bacoords)


    Great plugin! I have a plugin that I’ve developed but it conflicts with this plugin and I’m trying to see how to resolve it on my end.

    Basically I change the img ‘src’ attribute w/ jquery, but the srcset generated by the picturefill doesn’t regenerate. I’ve tried including the picturefill mutation plugin and also just calling the regenerate method:

    picturefill({
      reevaluate: true,
      elements: [ document.getElementById( "myImg" ) ]
    });

    none of these seems to get the picturefill method to regenerate.

    do you have any suggestions?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.