-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Something we have done in our cms, was adding lazyloading
to tabs, which increased performance for all themes and plugins.
It would be kind of nice if that was rolled out to tabs in a web standardized form.
An example from our cms:
Let's say a user is on a using a 2G/GPRS network connection and the data is coming very slowly to their device:
- First - The
tab
list loads
- Second - You see a blue loading spinner for the
tab content
- Third - The
tab content
gets loaded.
Please note, when a user is using a fast internet connection all these sequences would take milliseconds.
Developers would just need to add an attribute to turn on Native lazy loading for the desired web component, with various options such as: lazy
and eager
see here: https://html.spec.whatwg.org/#lazy-loading-attributes
Also related to this comment: #3752 (comment)
Follows on from the discussion started here: openui/open-ui#238
CMS code pr for the lazyloading: octobercms/october#4658
Discussion about removing the FOIT (Flash of Invisible Text) when a user loads a web page using a fragment url to one of the tabs directly: octobercms/october#5393