From cf7c068c28f79f23e16d26fef2b33dc1c1ba22fc Mon Sep 17 00:00:00 2001 From: Thierry Bela Date: Mon, 18 May 2020 10:34:25 -0400 Subject: [PATCH] change version number --- CHANGELOG.md | 4 ++++ docs/http.md | 23 ++++++++++++++++++++--- docs/web-share-target.md | 2 +- gzip.xml | 2 +- package.json | 2 +- worker_version | 2 +- 6 files changed, 28 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bf7b21..33a62ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change History +## 2.8.1 + +- fix empty service worker files #102 + ## 2.8.0 - Add \.ico as a supported PWA icon format #78 diff --git a/docs/http.md b/docs/http.md index bfde892..346237f 100644 --- a/docs/http.md +++ b/docs/http.md @@ -15,10 +15,27 @@ If yes, when the client sends Save-Data headers, optimizations are enforced rega ### HTTP Server Timing -Send HTTP Server Timing headers. They can be viewed in the google chrome network panel. Click on the network panel -> Click on your web page -> Click on the timing tab on the right. It should be turned off on production. -ps: this helped me spot a [regression in the image processing](https://github.com/tbela99/gzip/issues/38) that has since been fixed +Use the global Joomla profiler to profile you code -![Server Timing](./images/Server-Timing.PNG) +```php +# sample code + $profiler = JProfiler::getInstance('Application'); + + // profile sections of your code + $profiler->mark('afterParseImages'); + $body = Gzip\GZipHelper::parseCss($body, $options); + + $profiler->mark('afterParseCss'); + $body = Gzip\GZipHelper::parseScripts($body, $options); + + $profiler->mark('afterParseScripts'); + $body = Gzip\GZipHelper::parseURLs($body, $options); + + $profiler->mark('afterParseURLs'); +``` +Open the google chrome console and navigate to the network tab. Click on your page request. Click the timing tab. You will see the result. + +![Server Timing](./img/Server-Timing.PNG) ### DNS Prefetch diff --git a/docs/web-share-target.md b/docs/web-share-target.md index c874bff..96b3489 100644 --- a/docs/web-share-target.md +++ b/docs/web-share-target.md @@ -1,6 +1,6 @@ # Web Share Target -Web Share Target Level 2 is the web standard that allow your app to receive data shared by other apps. +Web Share Target Level 2 is the web standard that allow your pwa app to receive data shared by other apps on android/ios platforms. ![Web Share Target](./img/web-share-target.jpg) diff --git a/gzip.xml b/gzip.xml index 5ce0183..33910bf 100644 --- a/gzip.xml +++ b/gzip.xml @@ -7,7 +7,7 @@ Released under dual license LGPL v3 | MIT contact@tbela.net https://tbela.net - 2.8.0 + 2.8.1 PLG_SYSTEM_GZIP_XML_DESCRIPTION docs diff --git a/package.json b/package.json index 4f16a6a..21fd7b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gzip", - "version": "2.8.0", + "version": "2.8.1", "scripts": { "build": "./build.sh", "rollup-config": "./node_modules/rollup/dist/bin/rollup ./config/rollup/rollup.js -f iife --name=rollupConfig > ./rollup.config.js", diff --git a/worker_version b/worker_version index be0e2cd..e6ca913 100644 --- a/worker_version +++ b/worker_version @@ -1 +1 @@ -da39a3ee5e6b4b0d3255bfef95601890afd80709 +e7ad24017b85c6eae7d16c9cbf4a6f1f8f19eee3