Progressive Web Components
1–10 of 61 posts
Re: Progressive Web Components
#2Re: Progressive Web Components
#3Re: Progressive Web Components
#4Ok but ... why? With that I mean, why do we need it? What can be created with PWC specifically? Is there a gallery of web games? That would at the least make understanding the use case easier.
You can create anything and everything. Web components are about extending html to make it do more, progressive web components are about rendering that on the server and progressively enhancing with interactivity in the browser. Elena solves the major pain points in doing that. Components built this way can be used in any framework.
Re: Progressive Web Components
#5Re: Progressive Web Components
#6Another amazing trick is to put a mutation observer on the page to detect tags as they're created. (template tags parse the HTML within but don't actually create it on the page). Once the observer finds a template tag it can upgrade them to have new powers, like replacing the contents of other tags. There are ways to tame web components and make them very easy to use.
Re: Progressive Web Components
#7The HTML + CSS first approach and JS only for enrichment sounds great, and like what should be done anyway. I wonder though, how it will play out in reality. Will web developers using this library make the effort to keep essential functionality JS free, if possible, and provide additional views using whatever web framework they use, or will they implement essential functionality as "JS enrichment", requiring JS for t…
Still, the advantages are clear: they don’t need any special runtime and can be used with other JS frameworks.
Another thing in favor of web components is support for custom registries which make gradual migration from one version to another trivial. AFAIK, no JS framework has an equivalent of custom registries.
Re: Progressive Web Components
#8Re: Progressive Web Components
#9Regardless, kudos for the release
* const componentRegex = /)([^%]?)%>/g;