Proyek
Lihat di GitHub
threepointone/css-suspense
Tentang
Animasi pemuatan CSS untuk React.
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Aslicss-suspense
loading css files, the suspense way.
requirements
- don't inline css into the js bundle
- while server rendering, inline
<link>tags, enabling progressive css - on client side, suspend rendering till the css loads (with optional fallback ui)
- render synchronously if already loaded
api
the api is a boring Stylesheet tag.
<Stylesheet href='/path/to/style.css'/>
{/* this content will not render to dom
until the stylesheet finishes loading */}
<span className='big'>what up what up</span>
todo
- unload styles that aren't used (needs
SimpleCacheProvider::invalidate) - tests etc etc
Jelajahi proyek terkait
Memuat…