chore(trading): fix ssr loader server mismatch, remove preload (#6018)
This commit is contained in:
parent
d9292b9be2
commit
72df08851c
@ -10,18 +10,12 @@ export default function Document() {
|
||||
/>
|
||||
|
||||
{/* preload fonts */}
|
||||
<link
|
||||
rel="preload"
|
||||
href="/AlphaLyrae.woff"
|
||||
as="font"
|
||||
type="font/woff"
|
||||
/>
|
||||
|
||||
<link
|
||||
rel="preload"
|
||||
href="/AlphaLyrae.woff2"
|
||||
as="font"
|
||||
type="font/woff2"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
|
||||
{/* icons */}
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { pseudoRandom } from '@vegaprotocol/ui-toolkit';
|
||||
|
||||
const generate = pseudoRandom(1);
|
||||
import { useRef } from 'react';
|
||||
|
||||
export const SSRLoader = () => {
|
||||
const generateRef = useRef(pseudoRandom(1));
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
@ -38,7 +38,7 @@ export const SSRLoader = () => {
|
||||
width: 10,
|
||||
height: 10,
|
||||
animation: 'flickering 0.4s linear alternate infinite',
|
||||
animationDelay: `-${generate()}s`,
|
||||
animationDelay: `-${generateRef.current()}s`,
|
||||
animationDirection: i % 2 === 0 ? 'reverse' : 'alternate',
|
||||
background: 'black',
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user