From 73c5bd4a07ed74ce8476997cdb19c646cdbb9a9b Mon Sep 17 00:00:00 2001 From: Naveed Ahmad Date: Fri, 20 Jan 2017 11:59:49 +0500 Subject: [PATCH 1/3] improved time to first paint #594 (#599) --- src/config.js | 5 ++--- src/helpers/Html.js | 3 +++ src/styles/variables.scss | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/config.js b/src/config.js index 658e40187..6ddf864b9 100644 --- a/src/config.js +++ b/src/config.js @@ -84,13 +84,12 @@ module.exports = Object.assign({ { rel: 'apple-touch-icon', sizes: '152x152', href: '/apple-touch-icon-152x152.png' }, { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon-180x180.png' }, { rel: 'preconnect', href: 'https://quran-1f14.kxcdn.com', crossOrigin: '' }, - { rel: 'preconnect', href: 'https://assets-1f14.kxcdn.com', crossOrigin: '' }, - { rel: 'stylesheet', href: 'https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css' } + { rel: 'preconnect', href: 'https://assets-1f14.kxcdn.com', crossOrigin: '' } ], /* SEO: https://developers.google.com/structured-data/slsb-overview#markup_examples */ /* SEO: https://developers.google.com/structured-data/site-name#markup_requirements */ script: [ - { src: 'https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en' }, + { src: 'https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en', async: '', defer: '' }, { type: 'application/ld+json', innerHTML: `{ diff --git a/src/helpers/Html.js b/src/helpers/Html.js index d781eede1..2b5ecbdff 100644 --- a/src/helpers/Html.js +++ b/src/helpers/Html.js @@ -79,6 +79,9 @@ const Html = ({ store, component, assets }) => { {Object.keys(assets.javascript).map((script, i) =>