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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i ajoslin-rehype-javascript-to-bottom

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andytjoslin