menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Productivity News

>

Import on ...
source image

Dev

18h

read

250

img
dot

Image Credit: Dev

Import on Interaction

  • Import on Interaction is a performance pattern that allows deferred loading of resources over the network based on user interaction.
  • It involves using React.lazy, Suspense, Dynamic Import, and facade pattern to load resources only when needed instead of loading them immediately on page load.
  • Examples include loading 3rd party widgets, authentication SDKs, infrequently used features like scroll-to-top animations or export libraries, analytics, and tabbed interfaces on user interaction or click events.
  • Facades can be used for deferring loading of elements like Youtube video embeds and Google login SDK until the user interacts with them to enhance performance.

Read Full Article

like

15 Likes

For uninterrupted reading, download the app