mozbrick / brick

UI Web Components for Modern Web Apps
http://mozbrick.github.io/
Other
2.97k stars 206 forks source link

All components FOUC the page regardless of resource load timing or page caching #196

Open csuwildcat opened 10 years ago

csuwildcat commented 10 years ago

Not sure if this is already something you're looking at with these new non-X-tag components, but I noticed all the new versions of these components flash a broken state regardless of when they are loaded, or if the page is cached.

potch commented 10 years ago

Yep- it's an unfortunate side effect of HTMLImports not blocking page load. Polymer offers an [unresolved] attribute for the purposes of obscuring the FOUC, which we will likely use and document as a best practice. Most complex webapps have a splash screen, and perhaps even a <splash-screen> is something developers may want.