Giter VIP home page Giter VIP logo

Comments (7)

dev-AshishRanjan avatar dev-AshishRanjan commented on July 1, 2024 1

@M-YasirGhaffar ,

Initially I was going with Image component but faced some issue where Image was not loading from tmdb image endpoint
If you want, you may work on this

from rive-next.

dev-AshishRanjan avatar dev-AshishRanjan commented on July 1, 2024 1

@M-YasirGhaffar ,
LazyLoadImage has been intentionally added
Without it the Images use to load line-by-line (raster scan)

We have used the react-lazy-load-image-component to solve this issue by loading the image only when the image has been fully loaded

And as we are using LazyLoadImage, we cannot use of next/image
And react-lazy-load-image-component's LazyLoadImage has been used in many large-scale projects for optimized and production ready image loading.
Initially we were not using this react-package but when slow internet the images use to load in raster scan fashion, which looks bad for a production ready app/web.

So this issue becomes irrelevant in image load optimization.

from rive-next.

dev-AshishRanjan avatar dev-AshishRanjan commented on July 1, 2024 1

@M-YasirGhaffar ,

I have tried using motion.img and yes it work well on local machine,
but when deployed and on slow internet it does the same raster scan

Initially our project was using motion.img only, and I didn't want to switch to a new package for lazy load,
but we had to switch due to issues after deployment
so always check in deployed and slow internet environment

And if there is space for improvement, then I will not close this issue as of now 👍

You can ask for environment vars using gmail for better functionalities

from rive-next.

git-greetings avatar git-greetings commented on July 1, 2024

Thanks @M-YasirGhaffar for opening this issue!

For COLLABORATOR only :

  • To add labels, comment on the issue
    /label add label1,label2,label3

  • To remove labels, comment on the issue
    /label remove label1,label2,label3

from rive-next.

git-greetings avatar git-greetings commented on July 1, 2024

First issue by @M-YasirGhaffar

Issues Details of @M-YasirGhaffar in rive-next :

OPEN CLOSED TOTAL
1 0 1

from rive-next.

M-YasirGhaffar avatar M-YasirGhaffar commented on July 1, 2024

I have thought of a solution which requires changes at a lot of places (hence plenty of free time is required).
Use of LazyLoadImage is causing the images to load with a delay. I think it would be better to use motion.img since components are already using motion animations.
Leaving my suggestion here just in case someone would like to solve this issue.

from rive-next.

M-YasirGhaffar avatar M-YasirGhaffar commented on July 1, 2024

Although LazyLoadImage makes the loading animation look consistent but it still takes a lot of time for images to load. I have tried with one component on my local machine and use of motion.img (adjusting size using their inline property instead of scss) seem to have visibly reduced the loading time.
Maybe we can find a way to add more lazy loading and optimized images component like motion.img or next/Image
You can close this issue if you think its irrelevant but i think there is a space for improvement.

from rive-next.

Related Issues (10)

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.