Print pagebreaks, inline width images
This commit is contained in:
1 parent
83a00a467a
commit
77eec532a5
6 files changed
+68
-5
No files matched your search
@@ -0,0 +1,8 @@
|
||||
function loadAllImages() {
|
||||
document.querySelectorAll('img[loading="lazy"]').forEach(img => {
|
||||
img.setAttribute('loading', 'eager');
|
||||
});
|
||||
}
|
||||
|
||||
// Before printing (manually or via browser)
|
||||
window.addEventListener('beforeprint', loadAllImages);
|
||||
Reference in new issue
Block a user