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
I have a single page application (SPA) use PreloadJS for resource loading.
I have different screens (pages) in my SPA (have different url using react-router).
I need load resources for each view when user navigate to. And if previous loading is not complete I need just stop all loading before new loading.
Should I create a new LoadQueue for each loading process or reuse the LoadQueue?
My question is which is the best practice to load different set of resources, create a new LoadQueue for each set or reuse one single LoadQueue?
If reuse is OK, how to correct reset LoadQueue for next loading request.
The text was updated successfully, but these errors were encountered:
I have a single page application (SPA) use PreloadJS for resource loading.
I have different screens (pages) in my SPA (have different url using react-router).
I need load resources for each view when user navigate to. And if previous loading is not complete I need just stop all loading before new loading.
Should I create a new LoadQueue for each loading process or reuse the LoadQueue?
I first tried to reuse the queue:
But it sometimes fires 'complete' when some resources not loaded.
Then I tried:
My question is which is the best practice to load different set of resources, create a new LoadQueue for each set or reuse one single LoadQueue?
If reuse is OK, how to correct reset LoadQueue for next loading request.
The text was updated successfully, but these errors were encountered: