badgeyay
badgeyay copied to clipboard
Implement asynchronous loading
I'm submitting a ...
- [ ] bug report
- [x] feature request
Description :
Loading asynchronously will prevent any delay in pageload because the page will attempt to load all elements simultaneously,
Current behaviour:
Currently the pages are loaded synchronously
Would you like to work on the issue?
Yes
@yashLadha @gabru-md @ParthS007 Discussion needed.
Async loading of all elements is not a good practice. Images are loaded asynchroneously, large images therefore appear slowly on slow connections. Many simulataneous connections to load Dom can also ruin the webpage experience. Therefore I propose we close this.
It is not a good practice to transfer images through network though, instead, thumbnails and SVG would be a better approach for rendering images. Secondly initiating several parallel loads at the same time, so this problem is solvable by maintaining a thread pool in the browser and limiting the number of threads. A queue can be maintained which takes care of the large number and the images should be thumbnails or SVG for better complying with the logic.