ajoslin-rehype-javascript-to-bottom
v1.0.0
Published
Move JavaScript `<script>` to `<body>`
Downloads
2
Readme
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>