Disable for Print not working
Opened this issue · 1 comments
I noticed in Version 0.6.4 you added the feature of disabling when printing. For some reason, when I print preview in both Chrome and Firefox, only the images that have been loaded already in the browser show up in the preview.
By adding a class of 'no-lazy' to the first image on the page, it somehow fixes the issue and all images on the page show in the print preview.
Here's an example of a page that does not have no-lazy applied: https://placesjournal.org/article/camp-code/
And here's one that does: https://placesjournal.org/article/multilevel-metropolis-urban-skyways/
I'm sure it could be something conflicting on my end but I thought I would ask here if you had seen the issue before.
Thanks!
Confirmed that this issue still exists.
It could be fixed by registering a listener for the onbeforeprint
event and load all remaining lazy resources on the page (also add the polyfill for Safari).