While building my own website (https://lichter.io/) I've recognized that when changing pages, the (already loaded) footer will be displayed before the page content kicks in. The glitch does not occur on the first load, only on page change.
Browser: Firefox (tested on version 58.0.1 (64-bit) Ubuntu 17.10), Chrome and iOS Safari ran fine.
NuxtJS mode: production mode
NuxtJS version: 1.4 (but also occurred on previous versions)
Firefox 58.0.1 (64-bit) Ubuntu 17.10:

Chrome 64.0.3282.140 (Official Build) (64-bit) Ubuntu 17.10:

Recording from @JGJP: https://jgarcia.jp/nuxt-glitch/demo.mp4
Repo of the gifs (live at https://lichter.io)
Repo from @JGJP (live at https://jgarcia.jp/nuxt-glitch/)
Same issue here !
Yes, there's issue in FF, I wrote about it too. As far as I understand, it's a specific FF issue (I hope), so I get used to it. But if it can be fixed it would be cool.
Seems it's probably a css issue more than a nuxt issue? Is it possibly related to this?
https://stackoverflow.com/questions/41837540/footer-not-staying-at-the-bottom-in-firefox
@BonnieDoug Well, the footer stays at the bottom when the site is fully loaded, so I don't think it's a CSS issue. 馃
@manniL but once the page is loaded, there is content pushing the footer to the bottom. While you are waiting for the page to load there is nothing there to keep it down so it jumps up probably ignoring some sort of height: 100% styling on the containing div, but I can only guess, as I've not seen your code.
@BonnieDoug This doesn't happen in other browsers (e.g. chrome), so the only reason I could imagine is that the (cached) page loads faster on chrome than FF, so you don't see that footer flashing.
The weird thing is, that the Nuxt.js app is not running in SPA mode, so everything should be rendered serverside and that issue shouldn't be related to CSS at all.
I'm having the same problem, what it looks like to me is that the <nuxt> component within the layout gets added to the DOM after other elements in the layout like the footer. If you comment out <nuxt> you'll see what the split second flash is. I've kind of worked around this for now by putting my footer in all my page components instead, but this defeats the purpose of using a layout, IMO.
Hoping there can be a fix for this.
Is this in production (build + start) or in dev?
@qm3ster In production. Would it be in dev only, it wouldn't be an issue at all. :)
You can check it directly on the website I've linked above or can clone the repo and try it locally
Couldn't reproduce even after disabling service worker.
HOWEVER...
Have you noticed that the 2px progress bar stays at the top of the page, so there is a gap between the header and the browser controls?
Which browser and OS did you use for your reproduction attempts?
Funny, I haven't noticed it by now. But I've fixed it in the repo :relaxed:
:b:irefox 58.0.2 (64-bit) on :b:u:b:untu 17.10 GNOME.
Weird... I'm using the same Browser and System, but the issue persists. Will cross-check on another PC tomorrow.
nvidia proprietary driver?
I made a simple project that demonstrates this issue, here's a screen recording:
https://jgarcia.jp/nuxt-glitch/demo.mp4
@qm3ster Yes!
@JGJP Thanks, I'll add the links to the issue!
I can't see it :(
Guess something is wrong with me.
I have this bug without Nvidia.
Anyway, Firefox is horrible. I dropped following their way and suggest you to do the same. For example, today I discovered another issue in Firefox - translateZ transition doesn't work right. It works freaking everywhere beside Firefox. So to hell this guys.
@qm3ster dude, it's right in the video. You trolling us, stop it :smile:
@hackuun I meant I can't reproduce it even with the garish oversimplified example provided by @JGJP where I don't have to fight a webworker.
On my machine it refuses to happen.
I can obviously see it in the video, I don't have 7fps vision disease.
Yep also seeing the same issue only on firefox.
Also the same problem
Same problem :(
Tested it again with latest FF and it seems to be fixed.
This bug-report has been fixed by @manniL.
Doesn't occur in latest FF version anymore.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@BonnieDoug This doesn't happen in other browsers (e.g. chrome), so the only reason I could imagine is that the (cached) page loads faster on chrome than FF, so you don't see that footer flashing.
The weird thing is, that the Nuxt.js app is not running in SPA mode, so everything should be rendered serverside and that issue shouldn't be related to CSS at all.