Pop up scripts loading in all pages
-
Hi,
I’ve created 3 pop ups in my site which are display in 3 different pages. (One pee page). And I’ve done that with this rule: https://imgur.com/a/2yX9mU3.
In the code I see that if I’m in another page, the pop ups actually don’t show: https://imgur.com/a/QxN48dB
So far, so good. The problem is that on those pop ups I have youtube videos and I guess that what the plugin does is to remove the popups with js after the page loads, because youtube scripts are being loaded on those pages: https://imgur.com/a/5aEAPKg
This is a big issue for me because it means in all my website three youtube videos are being loaded, which means a lot of heavy unnecessary scripts are being load in pages where they shouldn’t (More page size, http requests, etc.)Do you know if there’s a way to avoid this? May be that pop ups doesn’t load at all in other pages, instead of being removed with js.
Any help will be appreciated 😀
Thanks.
The topic ‘Pop up scripts loading in all pages’ is closed to new replies.