From b1de2c7f178a78dee05e1a3c15d9a9fbf1e7970e Mon Sep 17 00:00:00 2001 From: Tim Hostetler <6970899+thostetler@users.noreply.github.com> Date: Sun, 23 Jan 2022 03:00:18 -0500 Subject: [PATCH 1/3] Improve resource timeout issue As a stopgap measure, this PR adds a seconds CDN fallback URL. For the time-being removes SRI for external links. Also improves app loading messages --- grunt/aliases.yaml | 11 ++ grunt/optimize-build.js | 2 +- src/404.html | 9 +- src/500.html | 8 +- src/config/discovery.config.js | 195 ++++++++++++------------------- src/config/shim.js | 7 +- src/index.html | 10 ++ src/js/apps/discovery/main.js | 13 +-- src/js/components/application.js | 59 +++++++--- 9 files changed, 156 insertions(+), 158 deletions(-) diff --git a/grunt/aliases.yaml b/grunt/aliases.yaml index d177eb6c4..638274bd6 100644 --- a/grunt/aliases.yaml +++ b/grunt/aliases.yaml @@ -81,3 +81,14 @@ release: - htmlmin - imagemin - uglify + +release:quick: + tasks: + - env:prod + - clean:release + - copy:release + - string-replace:production + - check-release-version + - string-replace:latest_version + - optimize-build + - string-replace:final diff --git a/grunt/optimize-build.js b/grunt/optimize-build.js index 3816e6f65..2f3492298 100644 --- a/grunt/optimize-build.js +++ b/grunt/optimize-build.js @@ -52,7 +52,7 @@ module.exports = function(grunt) { }; var baseConfig = { - waitSeconds: 0, + waitSeconds: 7, logLevel: 1, baseUrl: 'dist', optimize: 'none', diff --git a/src/404.html b/src/404.html index 323b4c7bd..91d928a40 100644 --- a/src/404.html +++ b/src/404.html @@ -3,13 +3,8 @@ - - + + +