badgeyay icon indicating copy to clipboard operation
badgeyay copied to clipboard

Implement asynchronous loading

Open rajvaibhavdubey opened this issue 6 years ago • 3 comments

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

rajvaibhavdubey avatar Apr 04 '19 06:04 rajvaibhavdubey

@yashLadha @gabru-md @ParthS007 Discussion needed.

rajvaibhavdubey avatar Apr 04 '19 06:04 rajvaibhavdubey

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.

abishekvashok avatar Jun 05 '19 12:06 abishekvashok

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.

yashLadha avatar Jun 06 '19 03:06 yashLadha