• Resolved EMVK

    (@emvk)


    Hey there!

    Love your plugin, really useful!
    yet i have one small issue with opening pop-over iframes,
    It keeps loading so slowly in comparison to youtube videos or images, i really need to find a solution
    the inner page is very simple and shouldn’t load so much
    it actually takes most of the time to find the host and connect, so its not even loading at first

    is there any way to shorten or speed things up?
    thanks in advance

    https://wordpress.org/plugins/easy-fancybox/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hmmm, it’s not the script itself that loads the iframed content. That’s the browser’s job so there is nothing that can be done on the script side to improve things…

    Not sure why a light weight site would take so long to load but you could try speeding it up by attempting to “preload” the external site.

    This could be done by inserting a semi-hidden (not with a display:none because that would cause most browsers to completely ignore it, but maybe width/height of 1px?) iframe with the exact same URL on the same page where you have your light box link. This would make the external site load into the browser one each request, even if the light box link is not clicked. Speeding it up like this comes at a cost too…

    Another way could be to add a

    <link rel='dns-prefetch' href='__EXTERNAL_URL_HERE__'>

    in the page header. This should prefetch the DNS lookup without actually loading the complete page. Maybe this is enough to speed things up without the overhead of the method above.

    Hope these considerations help 🙂

    Thread Starter EMVK

    (@emvk)

    The thing is, the loading process happens only on iframes.
    for youtube videos it doesnt get stuck for even a second.
    im not talking about a website loading time, but on a “waiting” time where the iframe screen remains blank for a few long seconds…

    this does not happen on any of the other options, so it’s definitely not a page loading time, but a processing issue,
    any idea how to skip or cancel it?

    Thanks again

    The thing is, the loading process happens only on iframes.
    for youtube videos it doesnt get stuck for even a second.

    Youtube is also iframe content so there should not be any difference. Is there not some other problem on that specific web page that you are embedding?

    this does not happen on any of the other options, so it’s definitely not a page loading time, but a processing issue,

    FancyBox does not ‘process’ any content, it just provides the embed code in a light box styled framework.

    Can you share a link? I can take a look…

    Thread Starter EMVK

    (@emvk)

    how can i share a private message with you? i do not want the user and password to log in the website will be public

    You can use the contact form on https://status301.net/contact-en/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Very slow load for iframes’ is closed to new replies.