Hacker News new | ask | show | jobs
by reverseblade2 109 days ago
Another library ignores shadow dom.

As of now you don't need any frameworks for this. The new command and navigation apis, would just do the same trick.

2 comments

Fair point on shadow DOM. That said, µJS targets server-rendered HTML workflows, where pages are plain HTML generated by a backend framework or template engine. In that context, shadow DOM is rarely used, so this limitation doesn't affect the typical µJS user. If you're building heavily component-based UIs with Web Components, µJS is probably not the right tool anyway. A proper JS framework would serve you better.

On the native APIs: yes, the Navigation API and Speculation Rules are exciting, but browser support is still uneven. µJS works today across all modern browsers without any configuration. That said, I agree the gap will narrow over time.

Which new command and navigation apis are you referring to?
Google is your friend