How to run Magnific Popup for images loaded using Ajax?

Please help me to understand. There is a product card with pictures, which increase with Magnific Popup. Here everything works fine:
delegate: 'a',
type: 'image',
tLoading: 'Loading image #%curr%...',
gallery: {
enabled: true,
navigateByImgClick: true,
preload: [0, 1]
Next, using Ajax request to load new product images. But there is already Magnific Popup does not see the generated class .wrap_img for a new product, accordingly, the Magnific Popup script doesn't work.
March 12th 20 at 08:07
0 answer

Find more questions by tags Web DevelopmentjQueryJavaScriptAJAX