I ran my web page on the Google web page test tool and it suggested I use 'defer' or 'async' attribute to get rid of render blocking JS . My HTML is this:
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My Page</title>
<link href="https://mycdn.com/style.css" rel="stylesheet">
</head>
<body>
<div id="app-container"></div>
<script type="text/javascript" src="https://mycdn.com/shared.js"></script>
<script type="text/javascript" src="https://mycdn.com/main.js"></script>
</body>
</html>
Since , my scripts are getting including before the closing of the 'body' tag , and not in the 'head', are they really blocking ? Would a paint not happen until the closing 'html' is parsed ?