Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C covid19india-react
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • covid19india
  • covid19india-react
  • Merge requests
  • !2149

Slightly faster pageloads

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/slightlyoff/faster into master Jun 15, 2020
  • Overview 1
  • Commits 4
  • Pipelines 0
  • Changes 13

Created by: slightlyoff

Description of PR

Removes polyfills for fetch() (axios) and IntersectionObserver and delays loading of Google Analytics. In discussion with Jeremy it seems that losing compatibility with IE11 isn't a major issue.

The gains from delaying fetching of the GA scripts, and avoiding the gtm indirection, will be minimal for users on fast networks but should help those on slower links.

There's a lot of work remaining here to understand what the heck WebPack is doing for the default route and ensuring that we can preload the script that it's currently pulling in over a pretty janky stair-step, which you can see here at line 8:

https://www.webpagetest.org/result/200613_9S_fcc0999074dbca2982bc4e49dca95d21/1/details/#waterfall_view_step1

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/slightlyoff/faster