Execute code only when the DOM is loaded.
All samples are using
Ink.requireModules, please read how to use it at Ink.requireModules section
|.run([win], fn)||Specify a function to execute when the DOM is fully loaded.|
Specify a function to execute when the DOM is fully loaded.
winwindowWindow object to attach/add the event
fnCallback function to be executed after the DOM is ready
Run a function on
DOMContentLoaded AKA on DOM Ready
Should be used to run some code that will manipulate DOM in the page