I have come across a jQuery plugin that displays a “Loading” icon when a link is clicked on a page and the content is still loading. Here’s how it is called:
$(".preloader").click(function(){ $.loader({ className:"ajLoad", content:"" }); });
Is there a way to modify this call to trigger it when the page is loaded the first time or re-loaded, while keeping onclick functionality in tact?
1 Answer