Move JS <script>
elements to the end of <body>
.
This can decrease the time to first render.
npm install rehype-javascript-to-bottom
<!DOCTYPE html><html><head><script src="index.js"></script></head><body></body></html>
<!DOCTYPE html><html><head></head><body><script src="index.js"></script></body></html>