nichoth @nichoth.com · Jan 3

Another day, another web component. Good old modal window. I'm glad because it was actually hard to find a 'standalone' component for this. Maybe I can stop making the same thing over and over again. github.com/substrate-sy... #devlog

4 likes 2 replies

?

Replies

Danny Engelman 🌷🏍️🛥️ · Jan 4

> You should prevent the flash of undefined custom elements If you don't import (which executes your JS *after* all DOM is parsed) but define the Web Component wih a small (UI relevant parts only, rest later) render-blocking <script> in the <head> *before* DOM is parsed, there won't be a FOUC.

Stefan Matei · Jan 4

Very cool and useful. I made a version a few months ago that lazy loads the stuff inside the modal and got some good use out of it github.com/nonsalant/la...