프로젝트
GitHub에서 보기
threepointone/css-suspense
소개
React용 CSS 로딩 표시입니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalcss-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
관련 프로젝트 살펴보기
불러오는 중…