Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Lazy loading concept #130

Closed
teosarca opened this issue Dec 3, 2016 · 5 comments
Closed

Lazy loading concept #130

teosarca opened this issue Dec 3, 2016 · 5 comments

Comments

@teosarca
Copy link
Member

teosarca commented Dec 3, 2016

I am creating this task to gather ideas, info etc about lazy loading approach which is so needed in several places.

@teosarca
Copy link
Member Author

teosarca commented Dec 3, 2016

IMHO the lazy loading shall work something like this:

  • is data visible to user => load it now
  • data for a component which is not currently visible for user, but from UX perspective it shall instantly available as soon as user clicks:
    ** schedule a background task to load the data
    ** if user clicks to see the data and the data is not yet loaded, prioritize that task and wait to finish
  • data for a component which si not currently visible and user can wait => load it just in time

About loading data in background, i found a very interesting feature, called "requestIdleCallback" which is able to run non-essential code when browser is idle.
At the moment is not supported by all browsers but it's supported by chrome and i think we shall use it when possible.
See also: http://caniuse.com/#search=requestIdleCallback

@cadavre
Copy link
Contributor

cadavre commented Dec 6, 2016

Can we build a complete list of to-be lazy-loaded elements?

  1. Single tab
  2. Menu for navigation
  3. Document actions
  4. Referenced documents
  5. Sidelist

@damianprzygodzki
Copy link
Contributor

damianprzygodzki commented Apr 11, 2017

Do we have any more? All of them are now lazy loaded. It the task ready to close? We agreed about this approach.

@cadavre
Copy link
Contributor

cadavre commented Apr 11, 2017

Is no 2 also covered? If so – we have a issue to close. :)

@damianprzygodzki
Copy link
Contributor

damianprzygodzki commented Apr 11, 2017

You are right, so we should switch in home menu to a lazy loading.


For some further questions, the single dropdowns in breadcrumb can't be moved to lazy loading, that is how api structure is, to build breadcrumb, as the elementPath we need nodePaths too.

damianprzygodzki added a commit that referenced this issue Apr 12, 2017
#130 Homemenu fetching switched to lazy approach
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants