question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] flash/flicker when opening webpage

See original GitHub issue

Reporting a bug?

Provide as much information as you can to reproduce the issue. If the issue is not reproducible, it can’t be fixed!

Environment


react-static 7.4.2

Steps to Reproduce the problem

Base your steps off of any freshly installed react-static template!

  1. react-static create react-static-test
  2. yarn stage && yarn serve
  3. open in chrome and run profiling and reload page
  4. there will be a frames where the rendering will be cleared and then go back to the index content. this duration is longer depending on how much that needs to be hydrated.

image

Expected Behavior

I expect the page to load in chrome without any flickering or graphical if the static html matches the hydrated content.

Reproducible Demo

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
shahrouzzcommented, Jan 28, 2021

@kvet you’re absolutely right, by adding

"resolutions": {
  "**/react-universal-component": "4.0.1"
}

to package.json I don’t see the same problem anymore. thanks!

I am not too familiar with react-static internals and its dependencies so I don’t follow what your fix to webpack-flush-chunks does. Is that a necessary to fix another issue? or can do I need to apply that in order for latest version of react-universal-component to start working correctly again?

4reactions
kvetcommented, Jan 28, 2021

@shahrouzz Seems like I have a solution for the issue.

First, you need manually downgrade react-universal-component to 4.0.1.

Also, take a look at the following thing: https://github.com/faceyspacey/webpack-flush-chunks/pull/82/files. We have applied this fix in order to get proper list of entry chunks by using patch-package

Read more comments on GitHub >

github_iconTop Results From Across the Web

Your Guide to Website Flicker and How to Deal With It
What is Flicker and How Does it Happen? Flicker refers to the experience of a webpage loading once, and then quickly changing content...
Read more >
Display "Flash/Flicker" Upon Startup - Apple Community
Hi all, I have a new MacBook 2 GHz (Black) and I absolutely love it. Anyway, everytime I turn the computer on the...
Read more >
Safari 3 fixes Flash flicker bug - Jonathan Nicol
If you want to see the flicker bug in action, visit the homepage of the Adobe website using Safari 2, and open one...
Read more >
Need some help, Series X screen white flash/flicker - Reddit
Hey, I've been trying to get some help with a problem I'm having with my new Series X. I'm using a Samsung U32J590...
Read more >
Monitor's screen flickers while using the PDF files
i facing a problem, when i open the pdf files in adobe acrobat 2017 (in maximize window), my left screen start to flash/flicker, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found