DrSensor / nusa

incremental runtime that bring both simplicity and power into webdev (buildless, cross-language, data-driven)
MIT License
4 stars 0 forks source link

Partial navigation #30

Closed DrSensor closed 1 year ago

DrSensor commented 1 year ago

📚 References see up.link or micromorph

This feature is similar to dynamic Component (or Component routing) in SPA framework but it replace an element and it's descendants with static html (partial) from other url path.

The challenge here is how to prevent waterfall 🤔 (script will be fetched after html is fetched, this is wrong, it should be parallel!) Answer: CDN should provide early hints by parsing \<link rel=prefetch ...>

DrSensor commented 1 year ago

Duplicate #29 Also, commit https://github.com/DrSensor/nusa/commit/1a9b553c2364dea7f7cf517b4e7c6ba436a9ca93 should link to #14