Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Eager ¶
Eager Creates an img element with eager loading for immediate display. Example: img.Eager("logo.png", "Company Logo") Renders: <img src="logo.png" alt="Company Logo" loading="eager" /> Note: Image loads immediately, regardless of viewport position
func Image ¶
Image Creates an img element with source and alt text for accessibility. Example: img.Image("photo.jpg", "A beautiful sunset") Renders: <img src="photo.jpg" alt="A beautiful sunset" />
func Lazy ¶
Lazy Creates an img element with lazy loading enabled for improved performance. Example: img.Lazy("photo.jpg", "A sunset") Renders: <img src="photo.jpg" alt="A sunset" loading="lazy" /> Note: Image will only load when it enters or is near the viewport