官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 东乌珠穆沁旗| 宜兴市| 泰州市| 天津市| 仪征市| 阳春市| 申扎县| 富阳市| 南昌县| 广汉市| 延边| 高邮市| 大港区| 怀远县| 淮安市| 肇源县| 南安市| 临朐县| 长丰县| 永修县| 长丰县| 清徐县| 板桥市| 新津县| 博白县| 铜陵市| 皋兰县| 雷州市| 资阳市| 广昌县| 尼玛县| 南昌县| 麦盖提县| 郯城县| 维西| 资源县| 奈曼旗| 石阡县| 利辛县| 涪陵区| 博湖县|