1.0.0 • Published 6 years ago
ajoslin-rehype-javascript-to-bottom v1.0.0
rehype-javascript-to-bottom
Move JS <script>
elements to the end of <body>
.
This can decrease the time to first render.
Install
npm install rehype-javascript-to-bottom
Example
In
<!DOCTYPE html><html><head><script src="index.js"></script></head><body></body></html>
Out
<!DOCTYPE html><html><head></head><body><script src="index.js"></script></body></html>
License
1.0.0
6 years ago