Last updated:

May 28, 2026

Hide Elements on Page Load / Prevent Flickering

To prevent UI elements like the address search bar or filter reset button from flickering during page load, add the ncf-hide-on-load class to those elements in Webflow. They will be hidden during initialization and revealed once the map is ready. Tip: set ncf-address-range-container to Display: None in the designer — Dynamic Map will still show it on the live site.

This article explains when and why elements flicker, how ncf-hide-on-load works, and a common Designer quirk with the address range container.

Why Elements Flicker

Dynamic Map’s scripts load asynchronously after the page HTML is rendered. During the brief gap between HTML render and script load, any Dynamic Map element that should be hidden (like the filter reset button, which should only show when a filter is active) is briefly visible. This flash is what users experience as flickering.

How to Prevent Element Flickering

To prevent map UI elements from briefly appearing in their unstyled or unfiltered state during page load, add the ncf-hide-on-load class to any element you want hidden until the map has fully initialized.

Webflow Designer showing the ncf-hide-on-load class applied to the address search bar and filter reset button to suppress them during page load.
Webflow Designer showing the ncf-hide-on-load class applied to the address search bar and filter reset button to suppress them during page load.

With ncf-hide-on-load applied: Elements are hidden during load and revealed once the map is ready.

Map page in loading state with ncf-hide-on-load applied — the address search bar and reset button are not visible until the map has loaded.
Map page in loading state with ncf-hide-on-load applied — the address search bar and reset button are not visible until the map has loaded.

Without ncf-hide-on-load: Elements flash into view before the map scripts finish, causing a flickering effect.

💡 Pro Tip: Set ncf-address-range-container to Display: None in Webflow Designer so it doesn’t show during design — Dynamic Map will still render it on the live site. See also: Map Address Search.