blocking

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Render Block rendering until resource is loaded. For stylesheets, this ensures the
	// stylesheet is applied before any content is rendered, preventing flash of
	// unstyled content (FOUC).
	Render = Blocking("render")
)

Variables for Blocking values

Functions

This section is empty.

Types

type Blocking

type Blocking []byte

Blocking Controls blocking behavior for resource loading. Indicates that certain operations should be blocked until the resource is loaded.

func Custom

func Custom(value string) Blocking

Custom allows setting a custom Blocking 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