From fd634988af60712a1e7e8affba5e34e178f84164 Mon Sep 17 00:00:00 2001 From: zjcqoo Date: Thu, 9 Sep 2021 16:25:40 +0800 Subject: [PATCH] add a fallback if js is disabled or sw is not supported --- README.md | 25 +++++++++++++++++++------ assets/js/tmpl.js | 13 +++++++++---- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 42a973f..2b746fe 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,25 @@ Source Files: https://github.com/fanhtml5/test-site ## FAQ +Q: What if JavaScript is disabled? + +A: Unfortunately, the page can't be displayed. You can add a fallback in `404.html` such as: + +```html + + +``` + +---- + +Q: What if the browser doesn't support Service Worker? + +A: Same as above. The program will read the contents of `