Comments (5)
Is this not supposed to happen?
from stretto.
I have more than 90000 musics and it's not ideal
from stretto.
Ah, so you want an option to turn off automatic music loading?
from stretto.
It's better load a numbers of songs on start and then load others on scroll.
from stretto.
@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)
- Rewrite third-party http images to https HOT 1
- Change sync button color when syncing is currently not running
- Export HOT 4
- Your connection is not secure HOT 1
- Local Files HOT 6
- Spotify login doesn't appear to work HOT 7
- Feature request: Allow importing from YouTube playlists HOT 8
- Possibilities with cross origin requests enabled HOT 1
- Remote control HOT 2
- Repeat button not working as expected HOT 1
- Small UI bug when no results found online HOT 1
- no sound ??? HOT 14
- Working with out Chrome addon? HOT 1
- Trying to get in touch regarding a security issue HOT 1
- Offline Audio - Responses stored with 403
- Qobuz integration HOT 2
- Cant run with docker in windows
- Errors from media playback cause app-wide react error
- Seeking fails due to service-worker middle layer HOT 1
- Add feature for non-library playlists
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stretto.