loading

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

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

type Loading

type Loading []byte

Loading 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.

func Custom

func Custom(value string) Loading

Custom allows setting a custom Loading value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL