Title: Load iframe on open
Last modified: September 1, 2016

---

# Load iframe on open

 *  Resolved [nimon](https://wordpress.org/support/users/nimon/)
 * (@nimon)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/load-iframe-on-open/)
 * 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://wordpress.org/plugins/accordion-shortcodes/](https://wordpress.org/plugins/accordion-shortcodes/)

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

 *  Plugin Author [philbuchanan](https://wordpress.org/support/users/philbuchanan/)
 * (@philbuchanan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/load-iframe-on-open/#post-7579249)
 * What sort of iframe content are you trying to load (asking so I can do some more
   accurate tests)?
 *  Thread Starter [nimon](https://wordpress.org/support/users/nimon/)
 * (@nimon)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/load-iframe-on-open/#post-7579300)
 * 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](https://wordpress.org/support/users/nimon/)
 * (@nimon)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/load-iframe-on-open/#post-7579343)
 * 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](https://wordpress.org/support/users/philbuchanan/)
 * (@philbuchanan)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/load-iframe-on-open/#post-7579348)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/accordion-shortcodes.svg)
 * [Accordion Shortcodes](https://wordpress.org/plugins/accordion-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accordion-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accordion-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/accordion-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordion-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordion-shortcodes/reviews/)

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)

 * 4 replies
 * 2 participants
 * Last reply from: [philbuchanan](https://wordpress.org/support/users/philbuchanan/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/load-iframe-on-open/#post-7579348)
 * Status: resolved