The pure Javascript equivalent to
$(window).load(function() { // Your code goes here! })
is
window.addEventListener("load", function() { // Your code goes here! });
Note that it’s not supported by IE8, but that should not be an issue in 2019.
The pure Javascript equivalent to
$(window).load(function() { // Your code goes here! })
is
window.addEventListener("load", function() { // Your code goes here! });
Note that it’s not supported by IE8, but that should not be an issue in 2019.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow