RSS Feed/News Lightbox is missing thumbnails for lazy-loading images

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,822
Points
823

Reputation:

The Lightbox doesn't show thumbnails for images that have not yet been (lazy-)loaded. This is because XenForo sets the data-fancybox attribute (which Fancybox uses to group images into a gallery) only after an image has been loaded (see the XF.Lightbox.imageChecked function). In longer posts (and maybe for slow internet connections in general) this is too late.

In the following example there are two images at the top and two at the bottom. In between there is a lot of text (or...

Read more

Continue reading...
 
Status
Not open for further replies.
Top