Print pagebreaks, inline width images

This commit is contained in:
Vojta committed 2025-06-07 13:12:59 +02:00
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);