georgefetcher on "[Plugin: Popup Maker] Lazy-load iframes doesn't work in popups"

ساخت وبلاگ

Good afteoon! I have a serious problem. I have a website (Record Studio)
http://fetcherrecords.ru/
the home page should contain a lot of iFrames of SOUNDCLOUD (nine in pop-ups, two in the body)
Lazy loading iframes in the pop-maker's pop-ups does not work. I really need it. Iframes fully loaded immediately after opening the page (making it load much more slowly). I tried to install lazy plugins of different manufacturers, and neither did the delayed loading of iframes in pop-maker's pop-up windows.
Even if the plug-in is on(for example, A3-Lazy-load plugin) WITHOUT a script (which I have done below) - 2 soundcloud's iframes (which in the body of the main page) load their library and data, even if I did not screw the page to display it. With script everything works fine, except for pop-maker's pop-ups, which appears EMPTY if the script included.
https://db.tt/TQp42nlh
WHAT ABOUT SCRIPT:
I have a script that locks (in functions.php) iframes load (in conjunction with a3 Lazy-load) until the object is in sight
https://db.tt/DRQwrPQR
https://db.tt/XDFJfb5M

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script>
jQuery(function(){ $("iframe").each(function(){ this.tmp = this.src; this.src = ""; }) .parent(".popup_block") .click(function(){ var frame = $(this).children("iframe")[0]; console.log(frame); frame.src = frame.tmp; });
});
</script>

I did it because of the soundcloud. Their iframes very long time to load its resources and files.
https://db.tt/wMn1QTbE
(They are very slow, it is a known fact). At the moment I have two included soundcloud iframes at the homepage.
https://db.tt/ZmC4iUJz
It works perfectly with the iframes that are built right into the main page, but not in popups.
My script is not working in functions.php on the iframes in these pop-up windows.
At the moment I stand WP Super Cache, Better WordPress Minify - to speed up the loading of pages, they will not be affected on your plugin.
Since my site in Russian in the lower right coer for the convenience - choose English :)
Soundcloud's iframes located in eight sections below the main photo
https://db.tt/2BI4wCyp
P.S. Plugin version 1.3.8 (tried also the last version of plugin - the same story)
Lastest wordpress 4.5.3

Just for now - my script is disabled, Otherwise all the iframes do not appear in the pop-up windows

is there any way to make the load of iframe only when you open the pop-up window?

I beg somebody for help. I really like that plug-in!

https://wordpress.org/plugins/popup-maker/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 291 تاريخ : يکشنبه 10 مرداد 1395 ساعت: 22:45