Giter VIP home page Giter VIP logo

simple-pwa-project's Introduction

A simple PWA project just for learning

img

具体细节可以移步我的一篇博客

Start

npm i

npm start

What is service worker?

img

简单的说就是浏览器发送请求前的一个管家,但不一定每个浏览器都会有。

例如ie就全军覆没,还有safary也是在11.4后才支持

img

How does service worker works?

首先,浏览器需要先注册service worker后才能使用它的功能。

img

之后每次获取服务器的资源前都会经过这一层,这时候可以决定是否要使用缓存。

获取到资源后也可以选择是否把资源缓存起来以便将来使用。

img

simple-pwa-project's People

Contributors

honkinglin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.