Commit Graph

6 Commits

Author SHA1 Message Date
Aarni Koskela
331b3d07d0 Remove custom CSS-inlining HEAD 2022-02-11 15:51:58 +02:00
Aarni Koskela
ede079cd1f Run prettier 2022-02-11 15:30:11 +02:00
Olavi Haapala
0eba06f861 Inline the CSS for improved first paint performance (#81)
* Upgrade Next.js from 9.1.2 to 9.5.3

* Inline the CSS for improved first paint performance

* Change ENV to NODE_ENV

Possibly the CSS was not minified due to this
2020-09-30 15:12:47 +03:00
Olavi Haapala
ca5b251c7c 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
2020-09-22 21:46:25 +03:00
Aarni Koskela
468d63704c Upgrades + warning fix (#70)
* Upgrade all the things!

* fix: heed 'viewport meta tags should not be used in _document.js's <Head>' warning
2020-09-22 17:08:47 +03:00
Olavi Haapala
f4474523ad Chore/convert to typescript (#60)
* Convert to using TypeScript

Next.js v.9 allows converting an existing project to TS by simply renaming the files as TS files

* Fix type errors: Type 'string' is not assignable to type 'number'.

* Add mention about missing typings for javascript-time-ago

* Add GA_INITIALIZED to window

* Fix type error in feed transformers

* Model MembershipInfoForm state and props with TS

* Silence the typescript warning in MembershipInfoForm

* Add threshold to Fader props

* Fix Warning: Each child in a list should have a unique "key" prop.

Sponsors don't have ids – name is probably unique and can be used as a key

* Allow key as prop for SponsorLink

* Add type of the props for SponsorLink
2019-11-07 07:28:02 +02:00