blocking

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package blocking defines the Blocking type and its predefined values.

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

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 is a typed value for the HTML blocking attribute.

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