          def _app_views_layouts__img_loader_html_haml__4350984731196666246_1007560(local_assigns, output_buffer)
            @virtual_path = "layouts/_img_loader";;@output_buffer = output_buffer || ActionView::OutputBuffer.new; _hamlit_compiler1 =  javascript_tag do; 
; @output_buffer.safe_concat(("if ('loading' in HTMLImageElement.prototype) {\n  document.querySelectorAll('img.lazy').forEach(img => {\n    img.loading = 'lazy';\n    let imgUrl = img.dataset.src;\n    // Only adding width + height for avatars for now\n    if (imgUrl.indexOf('/avatar/') > -1 && imgUrl.indexOf('?') === -1) {\n      const targetWidth = img.getAttribute('width') || img.width;\n      imgUrl += `?width=${targetWidth}`;\n    }\n    img.src = imgUrl;\n    img.removeAttribute('data-src');\n    img.classList.remove('lazy');\n    img.classList.add('js-lazy-loaded');\n    img.dataset.testid = 'js-lazy-loaded-content';\n  });\n}\n".freeze)); end; @output_buffer.safe_concat(((::Hamlit::Utils.escape_html_safe(((_hamlit_compiler1).to_s))).to_s)); @output_buffer
          end
