Fix some performance issues

* Remove render blocking stripe JS that seems unnecessary
* Use native lazy loading of images
  - Truly a progressive enhancement, only affects browsers that support it
  - Causes a warning: [Intervention] An <img> element was lazyloaded with loading=lazy, but had no dimensions specified. Specifying dimensions improves performance. See https://crbug.com/954323, which can not be easily fixed
* Render content first, hydrate after that
This commit is contained in:
Olavi Haapala
2019-11-02 21:14:32 +02:00
committed by Aarni Koskela
parent fb4fb44ef6
commit bec251c4e6
8 changed files with 17 additions and 21 deletions

View File

@@ -27,7 +27,6 @@
"react": "^16.11.0",
"react-dom": "^16.11.0",
"react-ga": "^3.1.2",
"react-stripe-checkout": "^2.6.3",
"react-time-ago": "^6.0.1",
"stylus": "^0.54.7",
"twitter-text": "^3.0.0"