0

I have an embedded iframe in a page. It loads much slower than the rest of the page so I'd like to access it when its finished loading.

The end goal is to change the css inside the iframe via jquery. Atm, the css file completes loading before the iframe so the changes are not being applied.

Would this be able to be done? Will i need to use node's 'complete'? I'm a noob to node and just getting into promises and the .then() functionality.

jfriend00
  • 683,504
  • 96
  • 985
  • 979
Rainhider
  • 806
  • 1
  • 17
  • 31
  • This has nothing to do with node.js at all. This is all client-side. Some discussion of this issue here: [How can I access the DOM elements within an iFrame](https://stackoverflow.com/questions/24603580/how-can-i-access-the-dom-elements-within-an-iframe/24603642#24603642) – jfriend00 Jan 08 '18 at 16:23
  • @jfriend00 ty. I am a noob to node and embedded iframes so i'll definitely be looking into this. – Rainhider Jan 10 '18 at 20:28
  • jfriend00, iframe load and ready events do not work. they trigger immediately even when the iframe is not finished loading – Rainhider Jan 11 '18 at 14:48

0 Answers0