- 0.4.7 add garden css caching, this speeds up most use cases
- 0.4.6 improve docs for page-renderer.api namespace
- 0.4.5 fix :sw-default-url option for page-renderer.api/generate-service-worker (allow to accept "/" as default)
- Improved hashing on Java 8
- Better service worker management code with more consistent update
stylesheet-async
parameter working with a collection of stylesheet paths.
Readme - new section on service workers and PWA assets params.
License is now MIT.
Experimental service worker generation. Pass the same map you use
to generate a page and this function will generate a service worker
that will pre-cache all the assets found in the map.
Simple cache-busting included.
page-renderer.api/generate-service-worker
Two additional options:
renderable.sw-default-url
default route for your service worker, usually the same asstart_url
in yourmanifest.json
if you do a PWA.renderable.sw-add-assets
a vector with additional assets to pre-cache
page-renderer.api
namespace
- Same public members as in
page-renderer.core
plusgenerate-service-worker
andrespond-service-worker
- Service worker lifecycle script, just add
service-worker
key - Noscript fallback for async stylesheet appender script
- Support for favicon extensions other than .png
- Support for apple-touch-icon, apple-touch-startup-image, image_src meta
- on-dom-interactive-js JS snippet. If you need to do something in JS
when DOM is interactive (that's before
load
event). stylesheet-async
option: now supports a collectionjs-module
option: now supports a collection- Language support: provide
lang
param to render lang attr on the<html>
tag and a HTTP-Equiv meta tag. - PWA Manifest support
page-renderer.core/render-page
Now provides default /favicon.png and cache-busts it
page-renderer.core/render-page
Render twitter meta if either:twitter-site
or:twitter-creator
are supplied. Previously worked only if:twitter-site
was supplied.