by amluto · 8mo ago · 0 comments
Also, perhaps the CDN script snippets in the getting started page should include the integrity attribute.
On relative paths: the current behavior is intentional for simplicity. µJS checks whether the URL starts with a slash (but not a double slash) to identify internal links. No one has reported this as an issue so far, but it's a valid feature request and I'll keep it in mind for a future version.
On the integrity attribute: the reason it was missing is that the library was evolving quickly and the hash would have changed with every release. Now that it's stable, I'll add it.
If I were to adopt µJS, though, I would probably want to opt in on a per-link basis.
That said, proper support for relative paths is on the roadmap.