Giter Site home page Giter Site logo

pwa-minimal's Introduction

Minimal PWA

About

  • minimal (least amount of code) to make a web application qualify as installable PWA
  • no frills (css, js, library, framework), just plain old html and javascript (also some image/png/jpg for mandatory icon)
  • the goal is to show the bare minimum to be installable by chrome/chromium (specification might be changed later, so it should work around last commit date)
  • because it's minimal, it WILL violate many best practice for PWA

Contained reason

this section list the reason why each file exist in this minimal example (since all non-essential file/line must be removed to be truly 'minimal')

  • README.md = to show this information
  • index.html = html page to be served to browser, only contain link manifest and call to app.js
  • app.js = must be made separate with index.html, called with 'defer' so that only after html page finished loading that this script is executed, contain service worker registration
  • manifest.json = mandatory web manifest (only contain minimal properties/keys needed to be installable)
  • serviceWorker.js = mandatory service worker
  • image logo 192px and 512px = according to https://web.dev/add-manifest/ PWA (for chrome desktop) must contain 192px and 512px icon, also read https://web.dev/installable-manifest/

Removables

  • this repository also contain small inlined demo for useful features that might be wanted in a PWA
  • such features will be contained (inlined) in index.html, with <!-- REMOVABLES {{i}} START: {{feature_description}} --> {{code}} <!-- REMOVABLES {{i}} END-->
  • if truly minimal PWA demo is desired, just remove all the removable features from index.html

Credits

  • web.dev
  • github.com/gauravbehere/pwa-starter-demo

pwa-minimal's People

Contributors

kristian-tan avatar

Watchers

 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.