Add below code your WordPress theme functions.php manually not recommended
or try to user wp plugins scripts to footer (this not moves script in the mobile version of mobile.
speed booster pack move all the script but not allows to minify HTML.
HTML loads first, so the user can see what they want. js Loads meanwhile.
just look at the Adsense ad code <script>
<script async src=”path to js file”></script>
this is deep process only for developers. 90% of people ignore this.
Another thing is Optimize CSS Delivery
Minify CSS: Reducing the size by removing comments & Space This process applicable for JS and HTML too.
CSS Placement: why we have to place CSS in the header. Without CSS Plain HTML Loads it looks like ugly.
Inline CSS: if there is small CSS then try to inline the CSS instead loading from external file.
The best Plugin to cache all resources and serve quickly w3 total cache.
Check out my other thoughts Increase page speed score in google insights 95+, How to improve page speed
inline critical js small
it’s better online s just like critical css,
mostly responsive menu in mobile.
remove unused js
unload js files with asset cleanup.
Reduce the impact of third-party code
Third-party code blocked the main thread for 710 ms
<link rel=”dns-prefetch” href=”http://example.com”>
<link rel=”preconnect” href=”https://cdn.example.com”>
async and defer js
default behavior for script downloading and parsing is synchronous,
Mediavine switched to lazy-loading ads and saw a 200% improvement in page load speed.
a service worker to determine how often a piece of content should be fetched from the network,
Optimize HTML to Boost Web Performance
Clean up HTML
Don’t use inline styles / scripts.
cache at browser no need
optimize page delivery