LZLoadCallback
Leeze.js runs its initialization code on the window.onload
event. Hooking to onload
causes developers to lose access to that event, which can be useful.
LZLoadCallback
gives you that functionality back, allowing you to run code in the onload
event after Leeze.js initializes.
function LZLoadCallback() { console.log("Hello world, after Leeze.js initialization."); }
That's all the code you need to use this feature. Just define a function called LZLoadCallback
before including Leeze.js and it will get called automatically.