I have a very slow code running on the server side, to avoid the delay in rendering on the page, I decided to call the function via ajax
after the page loaded, I used both ways but both did not work:
With $(document).ready
the page is displayed, but font files (Google Fonts) and icons are loaded after.
$(document).ready(function() {
$.ajax({ ... });
});
Already with $(window).bind
the page is fully displayed after completing the function.
$(window).bind("load", function() {
$.ajax({ ... });
});