I have lots of HTML generated on $(document).ready(). I have a simple window system. But not only it is generated on $(document).ready() - also som
$(document).ready()
You can use
$(window).on('load', function () { alert("Window Loaded"); });
$(window).load(function(){ alert("Window Loaded"); }
has been removed from jQuery.