I have 2 pages, when loading the second page on the first page, the JavaScript of these pages starts after all JavaScript and loads very slowly. I wrote the code below to show the counter until the second page is fully loaded. But the counter does not work. Here is my code:
<script> $('.tourajaxi').html('<i class="fa fa-spinner fa-pulse fa-3x fa-fw" ></i><span class="sr-only">Loading ...</span>'); $(window).load(function() { $('.tourajaxi').load('/toursajax.bc?gid=325'); }); </script>
source share