Git Product home page Git Product logo

Comments (5)

ohnx avatar ohnx commented on July 19, 2024

Is this not supposed to happen?

from stretto.

mzilot avatar mzilot commented on July 19, 2024

I have more than 90000 musics and it's not ideal

from stretto.

ohnx avatar ohnx commented on July 19, 2024

Ah, so you want an option to turn off automatic music loading?

from stretto.

mzilot avatar mzilot commented on July 19, 2024

It's better load a numbers of songs on start and then load others on scroll.

from stretto.

benkaiser avatar benkaiser commented on July 19, 2024

@ohnx Love your first reply. Gold!

@mohammadrezaprw :
First of all, dude, you have a massive library. That's just of the chain.
Currently we send a message of all the songs on load. One optimisation I would like to consider is caching that song info locally in localstorage, and somehow using checksums or something to work out if we need to resend on page load. However with some initial tests on the feasibility of this, my 7233 song library hits 300KB of data, and with a localStorage limit of 5MB (without extending it), 90000 songs at on average the same attribute length would be 3.73MB almost hitting the limit.

We could send them in chunks when the page first loads, but because this is trying to be a music player experience that could rival desktop apps, I feel slow loading from a server when scrolling and whatnot would make it feel clunky, so I would always like to be sending all the data on page load.

If you want to submit a PR for sending the songs down in 1000 song chunks or so I'd be happy to look at that.

from stretto.

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.