List of steps to reproduce (step by step, including full links if applicable):
- On Google Chrome visit any article with lots of images
- Click print
What happens?:
Lazy loaded images do not appear in the article
What should have happened instead?:
Lazy images should appear.
Developer notes
Given https://bugs.chromium.org/p/chromium/issues/detail?id=875403#c40 was fixed this, onbeforeprint event blocks the print action. It can thus be fixed with 4 lines of code:
var lazyImageLoader = mw.mobileFrontend.require('mobile.startup').lazyImages.lazyImageLoader; window.onbeforeprint = function () lazyImageLoader.loadImages( lazyImageLoader.queryPlaceholders( document.getElementById( 'mw-content-text' ) ) ); }