Page 1 of 1

window.onload equivalent in C2

PostPosted: Thu Dec 04, 2014 8:22 am
by socialpilgrim
Is "on start of layout" equivalent to window.onload or any guess ?

Have tried looking at exported html but couldn't find one.

Re: window.onload equivalent in C2

PostPosted: Thu Dec 04, 2014 11:23 am
by Ashley
No - the loader starts in DOMContentLoaded, and then it waits for all the images/sounds to download, then it fires 'On start of layout'. It shouldn't matter anyway, why do you need to know?

Re: window.onload equivalent in C2

PostPosted: Thu Dec 04, 2014 12:14 pm
by socialpilgrim
I was thinking to make plugin for realtime.co, I saw it loads on window.onload event. But looks like either I have to inject in plugin or make dependency on some html file where it will load this.