lazy loading is the loading of resources such as image only when:
ComboStrap supports and enables by default the lazy loading of:
The lazy attribute defines the lazy behavior:
Example:
{{:page_speed_performance.png?400&lazy=none|}}
The default value is:
While the image is loading with the lozad method, the user will see a background-color as a placeholder that appears with a fade effect.
The default color is set in the configuration lazyloadingplaceholdercolor but you can change it with the standard background-color attribute.
Example with a dark color.
{{:docs:block:stock_image_surfer_in_the_see.png?300&background-color=#6c757d&spacing=p-3|}}
We have added padding (spacing=p-3) to be able to see the background. Without the spacing attribute, the background color is only seen when the image is loading
If the media loaded is heavy, the user sees a box with a background color that fades gracefully.
With this configuration, you can change the placeholder background color.
By default, the value is: #cbf1ea