Documentation
¶
Overview ¶
Package decoding defines the Decoding type and its predefined values.
Image decoding priority hint for browser optimization. Controls when images are processed and painted to balance performance with user experience and page responsiveness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Sync Decode image synchronously for immediate presentation. Blocks other tasks until // image is processed. Best for critical above-the-fold images that must appear instantly. Sync = Decoding("sync") // Async Decode image asynchronously to avoid blocking other tasks. Allows page interaction // while image processes in background. Good for non-critical images. Async = Decoding("async") // Auto Let browser decide optimal decoding strategy based on image importance and context. // Default behavior that balances performance with user experience automatically. Auto = Decoding("auto") )
Variables for Decoding values
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.