Answers for "detect if page is loading js"

1

how to check if page is loaded in javascript

<body onload="onload()">
	<div>
  		<p>TEXT</p>
  	</div>  
</body>

<script>
  function onload(){
	console.log("Window Has Been Loaded!")
}
</script>
Posted by: Guest on April-13-2021
0

if page is loading then show loader in js

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
Posted by: Guest on April-25-2021

Code answers related to "detect if page is loading js"

Browse Popular Code Answers by Language