mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

582
comptes actifs

#htmlfragments

0 message0 participant0 message aujourd’hui

Are there any good #web conferences / meetups with an #RFP open in the #BayArea or virtual?

There are a few projects I've been working on which I'd love to give talks about and share with the community (not Angular related). Could be talking about any/all of:

1. #HydroActive - A different take on hydration in an HTML-first world. github.com/dgp1130/HydroActive
2. #rules_prerender - A #Bazel ruleset serving as a fast and scalable #StaticSiteGenerator. github.com/dgp1130/rules_prere
3. #HTMLFragments - A no-tooling, web standard-based approach to HTML over the wire. blog.dwac.dev/posts/html-fragm

Greatly appreciate boosts for reach!

GitHubGitHub - dgp1130/HydroActiveContribute to dgp1130/HydroActive development by creating an account on GitHub.
A répondu dans un fil de discussion

@tbroyer Thanks for sharing that. I'd heard of the approach but don't think I'd read that article specifically. The performance metrics are very interesting.

I think the difference is that #HTMLFragments routing is technically an #SPA approach and keeps #JavaScript context between routes in a way that a #ServiceWorker navigation would not.

HTML Fragments as a concept is also a little more flexible beyond rendering full pages. It allows you to dynamically render individual components instead of a full page. For example, you can use it to infinite scroll a list, or edit an item of the list and rerender on the server without invalidating the whole page. This is discussed more in the original post:

blog.dwac.dev/posts/html-fragm

For a fully static site with a lot of content, I think the service worker approach could work well, while HTML fragments provides a bit more interactivity.

blog.dwac.devA Simpler HTML-over-the-Wire - Devel without a CauseIs it possible to build an HTML-over-the-wire application with only native web technologies? See how far can we go with zero custom tooling, and how the web specification can change to support it.
A répondu dans un fil de discussion

@tomayac 😁 I hadn't heard of "mini apps", I'll have to read more in that series, but the use of iframes sounds very similar. It reminds me a bit of the `embed` element I proposed here: blog.dwac.dev/posts/html-fragm

I imagine sandboxing would make those iframes tricky to work with in a lot of respects. With #HTMLFragments, at least everything is in the same frame and has the same JS execution context.

blog.dwac.devA Simpler HTML-over-the-Wire - Devel without a CauseIs it possible to build an HTML-over-the-wire application with only native web technologies? See how far can we go with zero custom tooling, and how the web specification can change to support it.

New blog post: Building a #router with #HTMLFragments.

blog.dwac.dev/posts/html-fragm

This explorers how we can use HTML fragments to define routes, load them dynamically, and then apply them to the main page content. It talks about more complexities with streaming #HTML (because I didn't learn my lesson last time) and even has a bonus section on shipping an application server _inside_ a #ServiceWorker.

Lots of interesting stuff, I hope you check it out!

blog.dwac.devHTML Fragments Routing - Devel without a CauseLet's build a router by fetching each route as an HTML fragment!