My aim was to async my external javascript so that the rendering of the website won't be blocked and of course as what async do, load the javascripts afterwards.
But the problem is that it seems like my external javascripts are totally prevented to load.
So here is a sample of my code (Not exact). When the user clicks add the input increments the number on a certain amount. It is from jquery where it gets its clicking and order.js to get the calculation
<!doctype html>
<html lang="en">
<head>
<script async src="/js/jquery.min.js"></script>
<script async src="/js/order.min.js"></script>
</head>
<body>
<p>Hello World</p>
<input type ="text">
<button id="add">+</button><button id="sub">-</button>
</body>
</html>
The problem is that the clicking does not work and I don't know what to do.
I want to improve the loading time but async does not work for jquery. Because, without inputting async there should be a default value but when I add async no default value (value from order.js) and button does not work (jquery).
Update: I tried using "defer" but the problem is just the same as async. Buttons does not work for jquery and there is no default value for the input.