You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.
For now I don't think we will add special support for this - ideally this feature could be ui helpers - these need to be destroyed properly when not used so we can keep track of memory. For now there are jquery libraries solving this https://github.com/luis-almeida/unveil
The code @aldeed shows in #206 (comment) - is ways to handle this - Ideally the data should streamed on the client-side as long as possible and be stored in blob. We can make dataUrl object references to blobs, this saves memory, but again we would have to know when to let go of the memory again eg. as a ui helper or track the subscriptions.
The text was updated successfully, but these errors were encountered:
Also, another nice idea with images might be to do something along the lines of PreloadJS, having the browser fetch the URL via XHR, and letting the browsercache handle the rest.
We can actually already implement this but it's very ugly. Basically it would be something like a watch on the Images collection, and whenever one is published, it would fetch it's url. Something more elegant that autofetches new images when they become available would be much more ideal.
At somepoint we will support local client-side files, i think the preload store is part of that pattern. I did prototype a local store in a private repo "cloudfs", it hold the files locally and used local files until uploaded, then switched reactivly to server url. It's our way of thinking latency compencation. So a Big topic post 1.0.0 but ok to start the dialog
+1 for this. I am currently storing SVG files directly in a normal collection and using meteor's pub/sub to 'cache' them in advance. I need to add audio soon and this solution would be a fantastic alternative.
It would also be wonderful to be able to have them optionally go to local storage, since in my case I reuse them a lot.
For now I don't think we will add special support for this - ideally this feature could be ui helpers - these need to be destroyed properly when not used so we can keep track of memory. For now there are jquery libraries solving this https://github.com/luis-almeida/unveil
The code @aldeed shows in #206 (comment) - is ways to handle this - Ideally the data should streamed on the client-side as long as possible and be stored in blob. We can make dataUrl object references to blobs, this saves memory, but again we would have to know when to let go of the memory again eg. as a ui helper or track the subscriptions.
The text was updated successfully, but these errors were encountered: