Before (DOM is ready only when jquery.min.js is loaded):
<html><head>
<script src="jquery.min.js"></script>
</head>
<body>
<h1>Hello world!</h1>
</body>
</html>
After (DOM is ready before jquery.min.js is loaded):
<html><head>
<script async src="jquery.min.js"></script>
</head>
<body>
<h1>Hello world!</h1>
</body>
</html>
No comments:
Post a Comment
You can ask IT questions in comments!