1.0.0 • Published 6 years ago

ajoslin-rehype-javascript-to-bottom v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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

MIT © Titus Wormer