mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user