Listener would like pages to load faster by lazy loading images in notes #99
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rho_n/hpr_generator#99
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The home page has 10 episodes listed with their notes. Sometimes these notes contain images. Offscreen images should be lazy loaded since there are not needed on initial page load saving data and time. The browsers will load them in just before they are needed to be seen.
I think this will be relatively painless using the TT2 Filter replace macro.
Filter data from the "show" column from the eps table for '<img ' and replace with '<img lazy="loading" '
I already did this in a slightly different way.
See
610e91ea9f
It's the notes column, not a show column, unless someone has changed the database.
The variable names can changed, and maybe move the macro into another file if you think that would be better.
Merged into main