- Progressive Web Apps with React
- Scott Domes
- 218字
- 2021-07-08 09:36:12
Instant loading
With Progressive Web Apps, we aim to provide an experience that is closer to a native app (one downloaded from the Apple App Store, Google Play Store, or another app store) than your typical web application. One of the advantages native apps have, of course, is that all relevant files are predownloaded and installed, while each time a user visits a web application, they may have to download all the assets again.
The solution? When the user first visits the page, download those assets and then save them for later (also known as caching). Then, when the user reopens the application, instead of downloading the files again over the internet (slow), we simply retrieve them from the user's device (fast).
However, this only works for when the user revisits the application. For the initial visit, we still have to download everything. This situation is particularly precarious, because when the user first visits Chatastrophe, they're not yet sold on its value, and so, are likely to leave (for good) if loading takes too long.
We need to ensure that our assets are as optimized as possible, and we download as little as possible on that first visit, so that the user stays around.
In short, fast loading for the first visit, near-instant loading for every subsequent visit.
- JavaScript從入門到精通(微視頻精編版)
- Spring Cloud Alibaba微服務(wù)架構(gòu)設(shè)計與開發(fā)實(shí)戰(zhàn)
- 64位匯編語言的編程藝術(shù)
- ANSYS Fluent 二次開發(fā)指南
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- Android驅(qū)動開發(fā)權(quán)威指南
- Flowable流程引擎實(shí)戰(zhàn)
- HTML5權(quán)威指南
- Hands-On GUI Programming with C++ and Qt5
- Python機(jī)器學(xué)習(xí)算法與應(yīng)用
- Building Serverless Architectures
- Swift High Performance
- C語言程序設(shè)計實(shí)驗(yàn)指導(dǎo)
- JSP應(yīng)用與開發(fā)技術(shù)(第3版)
- R語言:邁向大數(shù)據(jù)之路