CityOfDetroit / COD-Design-System

Design system for the City of Detroit.
https://cityofdetroit.github.io/COD-Design-System/
MIT License
1 stars 3 forks source link

Migrate to server side rendered custom elements, declarative shadow DOM #174

Open maxatdetroit opened 8 months ago

maxatdetroit commented 8 months ago

This is a large undertaking and should only be pursued if the other remedies in #170 don't address the issue.

The idea here is to build a SSR component library in the design system that uses declarative shadow DOM with inline styles, placeholder content, and component hydration to address layout shift issues. Ideally these components would rely on little to know JS to achieve their functionality.

maxatdetroit commented 7 months ago

More investigation required to see if this is worth prioritizing (e.g. how much of a problem is this).