ajoslin-rehype-javascript-to-bottom

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ajoslin-rehype-javascript-to-bottom

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andytjoslin