プロジェクト
GitHubで見る
threepointone/css-suspense
概要
React向けのCSSローディング表示です。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルcss-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
関連プロジェクトを探す
読み込み中…