Skip to content

Initial loading flicker on first visit #114

@mobeigi

Description

@mobeigi

There is a problem with the initial load for this project.

It will flicker on a fresh un-cached load:

chrome_5kVrmdbvHv.mp4

This is more obvious if you intentionally slow down your network data to 3G using Chrome Dev tools etc.

The issue is a result of main.js being too slow to load and set the loading state.

On my fork at https://github.com/mobeigi/photography

I've fixed this and also made a handful of other improvements including:

  • Deffering script loads
  • Non blocking CSS / Font loads
  • Updating to latest multiverse
  • Using font-awesome v5
  • Making gulp minify every css + js file
  • GA4 tag support

I'd be happy to put up a PR for all of this, but my last pr was not reviewed so I don't know if its worth the time.

If it will be reviewed let me know and I can put up a PR @rampatra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions