bloomRootMarginAttribute top-level constant

String const bloomRootMarginAttribute

DOM attribute name specifying the rootMargin CSS string for the HydrationStrategy.visible observer.

Controls how far outside the viewport the placeholder is before hydration begins. Defaults to '200px' if omitted.

Div(
  attrs: {
    bloomIslandAttribute: 'feed-item',
    bloomStrategyAttribute: 'visible',
    bloomRootMarginAttribute: '300px',
  },
)

Implementation

const String bloomRootMarginAttribute = 'data-bloom-root-margin';