Documentation
¶
Overview ¶
Package loading defines the Loading type and its predefined values.
Controls when images and iframes are loaded relative to the viewport. Implements native lazy loading to improve page performance by deferring non-critical resource loading.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Eager Loads the resource immediately when encountered in HTML parsing. Default behavior that // ensures resources are available as soon as possible. Eager = Loading("eager") // Lazy Defers loading until the resource reaches a calculated distance from the viewport. Improves // initial page load performance and reduces bandwidth usage for below-the-fold content. Lazy = Loading("lazy") )
Variables for Loading values
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.