From b19bbf26aeb352426a9393f9d039418e541fe3c2 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Mon, 20 Aug 2018 12:17:31 -0700 Subject: [PATCH] Fix preload for Firefox --- components/Meta.js | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/components/Meta.js b/components/Meta.js index dbfa679..3d14b42 100644 --- a/components/Meta.js +++ b/components/Meta.js @@ -10,6 +10,9 @@ const CDN_STYLESHEETS = THEMES.filter( t => t.hasStylesheet !== false && LOCAL_STYLESHEETS.indexOf(t.id) < 0 ) +// as="style" +// onLoad="this.onload=null;this.rel='stylesheet'" + export default function Meta() { const onBrowser = typeof window !== 'undefined' return ( @@ -38,44 +41,27 @@ export default function Meta() { Carbon - + {LOCAL_STYLESHEETS.map(id => ( - + ))} {onBrowser ? CDN_STYLESHEETS.map(theme => (