Introduce VisibilityObserver concept to SRC

Description

If we continue to show all components that have example md files in our React Styleguidist page, at some point this page is going to take a significant amount of time/resources to load!
Recommend we introduce something like YamUI's VisibilityObserver into the codebase, and define it as a wrapper for items shown in the Styleguidist page (just as they do). This way we can define an alternative when the component is in the viewport. This utility would be generally useful in our components (we could potentially immediately utilize in the SynapseMarkdown component!).

Environment

None

Activity

Show:
Emma Mills
November 24, 2020, 9:35 PM

I checked this locally and it works great!

Jay Hodgson
November 23, 2020, 10:57 PM

Our demo app will not scale unless this is figured out.
Portals can also use this functionality, so I'll export the component, but there should be an option in portals to force preloading the component (because things like the UpsetPlot or ThemesPlot need to be loading in the background, while below the fold).

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Jay Hodgson

Reporter

Jay Hodgson

Validator

Emma Mills

Priority

Major

Development Area

Portals