Which event is best for running window.onload scripts, via jQuery or through what?
.
document.addEventListener('DOMContentLoaded', function(){...}, false); // не кроссбраузерно
Source: https://ru.stackoverflow.com/questions/161063/More articles:How to make your advertising on the site that would not be cut off by plugins in the browserFilters strings containing semicolon-separated numbersThe problem when creating a class (Android)TooltipDisappears image in ie8Object reference does not indicate an object instance [duplicate]How to remove the menu from the Win32 window created in Visual Studio;Reading from files by character into JAVA arrayProtecting user's private folderAn extra element when reading from a file in C ++All Articles