Rendersubtree For Loading A Large Amount Of Images At Once?
I have a lot of images (40.000) on server and their references inside a db table - name, size, date, description etc. Tried to load all images at once and only 100 of them to be vi
Solution 1:
It depends why your page is slow. If you're using display:none to hide a whole bunch of content, rendersubtree is unlikely to help in that case.
There's also an img decode API which might help in your case https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decode
But before you jump in there, I would recommend doing some profiling to figure out exactly which part of the process is slow. (img loading / layout / etc)
Post a Comment for "Rendersubtree For Loading A Large Amount Of Images At Once?"