GithubHelp home page GithubHelp logo

pwa 最佳实践 about weekly HOT 1 CLOSED

ascoders avatar ascoders commented on April 28, 2024
pwa 最佳实践

from weekly.

Comments (1)

fanhc019 avatar fanhc019 commented on April 28, 2024

本文更侧重于对 pwa 核心技术的封装,化繁为简,降低了我们在生产环境下开发 pwa 的难度。

  1. 文中提到了借助 sw-precache 和 sw-toolbox 库来使用 Service Worker。它可以在多方面加速 web 应用:
  • 缓存应用和数据,有 3~4s 的显著提升;
  • 不仅在移动端,pc 端同样适用;
  • 优化 v8 代码,将 js 首次执行缓存;
  • 除缓存外,还有另外一个大招,结合 IndexedDB,实现离线应用;
  1. Push Notifications 替代库 Push API 还处于草案阶段,浏览器与推送服务间的协议支持还不够成熟,文章中提到了 FCM替代方案,m.alibaba.com 就是基于此的,还有 Mozilla 的 web-push 库。

实战部分:

  1. sw-precache 基本用法;
  2. 使用 gulp 构建 sw-precache;
  3. 运行时缓存策略;
  4. Autotrack.js 插件;
  5. Selenium Assistant 读取机器上浏览器列表,获取驱动实例,运行测试;
  6. Firebase Cloud Messaging 用法介绍

from weekly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.