Picture of Rob Mausser
Run Script only after all of Adapt has loaded
by Rob Mausser - Tuesday, 11 December 2018, 6:22 PM
 

I'm working on an extension, but it will only work properly if everything in Adapt has already loaded. 

There is the typical $(window).bind("load",function()

But it doesnt seem to be working properly on Adapt.

I know the Adapt core shares a lot of different functions that are specific to Adapt.

Is there one specific for running scripts at the end of Adapt loading everything else?


Cheers

Picture of Matt Leathes
Re: Run Script only after all of Adapt has loaded
by Matt Leathes - Tuesday, 11 December 2018, 8:55 PM
 

There's a list of them all here: https://github.com/adaptlearning/adapt_framework/wiki/Core-Events#adapt-built-in-events

app:dataReady is probably quite a good one to go for...