Skip to main content

Loadable components

Loadable plugins#

Loadable lets you render a dynamic import as a regular component. Loadable can help you “lazy-load” just the things that are currently needed by the user, which can dramatically improve the performance of your app.

Note: loadable plugins have different import. For using loadable plugins (meantime for viewer only), you should import plugins from loadable/viewer entry.

Usage Example#

import { pluginImage } from 'wix-rich-content-plugin-image/loadable/viewer';
return (
<RicosViewer plugins={[pluginImage()]}>
<RichContentViewer />
</RicosViewer>
);

Supported plugins#

Here is the list of plugins that support loadable component:

  1. Collapsible List
  2. Divider
  3. File
  4. Gallery
  5. Giphy
  6. Html
  7. Image
  8. Link
  9. Link Preview
  10. Map
  11. Poll
  12. Table
  13. Video