Git Product home page Git Product logo

Comments (4)

hemant14050 avatar hemant14050 commented on June 1, 2024 1

Thanks for asking @krishnaacharyaa, please assign it to me :)

from wanderlust.

krishnaacharyaa avatar krishnaacharyaa commented on June 1, 2024

Thank you @hemant14050 for creating the issue, please let us know if you are interested, we'll assign it to you :)

from wanderlust.

chinmaykunkikar avatar chinmaykunkikar commented on June 1, 2024

@hemant14050 I'd like to ask you for some more clarification on this:

Tell me if I understand this correctly:
You are proposing to dynamically show which posts are fetched from the collections and if the post is fetched, a bool will set loading to false for that specific post?

Let's say I have 10 posts, and I just refreshed the page, and it takes 10 seconds to completely load my page.
So, after your implementation, will it look like this?

0th second (nothing is fetched yet):
Skeleton
Skeleton
Skeleton
Skeleton
Skeleton
Skeleton
Skeleton
Skeleton
Skeleton
Skeleton

2nd second (2nd and 7th post is fetched):
Skeleton
Post visible
Skeleton
Skeleton
Skeleton
Skeleton
Post Visible
Skeleton
Skeleton
Skeleton

5th second (4 posts fetched):
Skeleton
Post visible
Skeleton
Post Visible
Skeleton
Skeleton
Post Visible
Post Visible
Skeleton
Skeleton

10th second (all posts fetched):
Post Visible
Post Visible
Post Visible
Post Visible
Post Visible
Post Visible
Post Visible
Post Visible
Post Visible
Post Visible

Thanks.

from wanderlust.

krishnaacharyaa avatar krishnaacharyaa commented on June 1, 2024

This is interesting @chinmaykunkikar, but presently this happens because of the image rendering, but not sure if this parallel fetching of post is even possible, happy to know the approach though,

But the whole idea was to just refactor the code, No changes with respect to the visual appearance in the application. Focusing on DX mostly than UX here.

from wanderlust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.