1.4.7
This recommended release updates the way that item images and scripts are loaded to improve reliability.
Previously, images were displayed as background-image
for the figure and loaded via IntersectionObserver
. Now they are loaded as normal img
elements with loading="lazy"
, which should fix sporadic (and difficult-to-reproduce) reliability issues.
Also fixes a typo in items-show.js
that impacted loading of PhotoSwipe image viewer.
Also fixes a longstanding bug where the items-show.js
script was sometimes loading before the globals.js
script, which should have been treated as a dependency. The items-show.js
script is now loaded in a callback after globals.js
has been loaded.