Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/page transition loader #68

Merged
merged 6 commits into from
Jan 27, 2024
Merged

Bugfix/page transition loader #68

merged 6 commits into from
Jan 27, 2024

Conversation

untael
Copy link
Contributor

@untael untael commented Jan 26, 2024

Closes #52

Also in scope of this pr:

  • no-prefetch removed from navbar to preload other pages (defined in the navbar) in idle mode
  • blur effect when loader appearing

Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for golden-caramel-d2c3a7 ready!

Name Link
🔨 Latest commit 09d7467
🔍 Latest deploy log https://app.netlify.com/sites/golden-caramel-d2c3a7/deploys/65b510ac6f90960009c18eb9
😎 Deploy Preview https://deploy-preview-68--golden-caramel-d2c3a7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@edwh
Copy link
Member

edwh commented Jan 26, 2024 via email

@edwh
Copy link
Member

edwh commented Jan 26, 2024

Using the preview deployment I loaded the site and then tried using Chrome Developer Tools to set the network offline, and then transition to another page.

I see a blurring, but no loading indicator:

image

What do you see?

@untael
Copy link
Contributor Author

untael commented Jan 26, 2024

Using the preview deployment I loaded the site and then tried using Chrome Developer Tools to set the network offline, and then transition to another page.

I see a blurring, but no loading indicator:

image

What do you see?

Yup, its valid. Somehow I forgot to commit loading component last night :) It should be fixed already.

Please back out the prefetch change. See nuxt/nuxt#18600 for discussion and background.

On 26 January 2024 01:39:00 GMT, Pavel Mironov @.> wrote: Closes #52 Also in scope of this pr: - no-prefetch removed from navbar to preload other pages (defined in the navbar) in idle mode - blur effect when loader appearing You can view, comment on, or merge this pull request online at: #68 -- Commit Summary -- * add: transition loader * chore: remove no-prefetch from navbars * feat: loader after 5s on slow internet -- File Changes -- M .eslintrc.js (1) M app.vue (22) M components/NavbarDesktop.vue (15) M components/NavbarMobile.vue (8) -- Patch Links -- https://github.com/Freegle/iznik-nuxt3/pull/68.patch https://github.com/Freegle/iznik-nuxt3/pull/68.diff -- Reply to this email directly or view it on GitHub: #68 You are receiving this because you are subscribed to this thread. Message ID: @.>

Currently nuxt implemented smart preloading which will preload resources only for links in the viewport and if internet connection is good. I reverted it back for now but I'm pretty sure we don't need to disable it (at least for navbar modules).

@edwh
Copy link
Member

edwh commented Jan 27, 2024

Thanks. Are you able to fade in the blur and loading indicator?

@untael
Copy link
Contributor Author

untael commented Jan 27, 2024

Thanks. Are you able to fade in the blur and loading indicator?

Sure. I added 0.25ms transition for blur & loader.

@edwh
Copy link
Member

edwh commented Jan 27, 2024

Thanks. That looks good, but on mobile the navbars are still visible - can you look at blurring those out too? The same may apply to the sticky ad bar at the bottom.

@untael
Copy link
Contributor Author

untael commented Jan 27, 2024

Thanks. That looks good, but on mobile the navbars are still visible - can you look at blurring those out too? The same may apply to the sticky ad bar at the bottom.

Are you sure that blurring navbars/footer is a good idea? User possible can change his mind on loading time and in that case on unblurred navbar he'll be able to click on another module from navbars/footer.

@edwh
Copy link
Member

edwh commented Jan 27, 2024 via email

@edwh edwh merged commit 8dff301 into master Jan 27, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle slow page transitions
2 participants