DEV: Use performance timings to as a baseline for the splash take 2 (#17284)

We previously relied on CSS animation-delay for the splash. This means that we can get inconsistent results based on device/network conditions.

This PR moves us to a more consistent timing based on {request time + 2 seconds}

Internal topic: /t/65378/65
This commit is contained in:
Joe
2022-06-30 21:22:00 +08:00
committed by GitHub
parent 7343cb9f73
commit 49905a4e6c
6 changed files with 87 additions and 18 deletions

View File

@@ -135,6 +135,10 @@ module ApplicationHelper
path
end
def self.splash_screen_nonce
@splash_screen_nonce ||= SecureRandom.hex
end
def preload_script(script)
scripts = [script]