• Resolved nimon

    (@nimon)


    First of all, you are awesome.

    Secondly, I have an iframe inside an accordion item. When all items are open on page load the iframes load no problem. When items are closed by default, everything but the iframes load up.

    I’d like the iframe to load when a user clicks to open the accordion. Ideally, the loading would happen when the accordion-item opens to cut loading time for the page, but it’s not the end of the world if all iframes load at the beginning and are simply revealed by opening the item.

    I have investigated for a few hours a way of making this happen but I’ve caved in and just decided to ask.

    Thanks in advance.

    https://ww.wp.xz.cn/plugins/accordion-shortcodes/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    What sort of iframe content are you trying to load (asking so I can do some more accurate tests)?

    Thread Starter nimon

    (@nimon)

    Hi there,

    I wasn’t aware this could affect it! The iframe is from a website called geogebra which allows you to make maths applets so students can muck about with them. Here’s an example:

    <iframe style="border: 0px;" src="https://tube.geogebra.org/material/iframe/id/HK36WiSK/width/1024/height/445/border/888888/rc/false/ai/false/sdz/true/smb/false/stb/false/stbh/true/ld/false/sri/true/at/auto" scrolling="no" height="445px" width="1024px"> </iframe>

    I’m actually just using a function with shortcode to get the id, for example
    [ggb id='HK36WiSK']
    which just echoes the whole iframe tag above with the id in the required place in the url.

    Any advice would be greatly appreciated.

    Thread Starter nimon

    (@nimon)

    Hm. I just opened my site in Chromium instead of Firefox and the content loads with no problem. It appears this is a browser problem, so maybe you shouldn’t waste your time.

    Thanks a million.

    Plugin Author philbuchanan

    (@philbuchanan)

    Glad you got it (sort of) worked out.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Load iframe on open’ is closed to new replies.