mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-24 15:09:44 +00:00
feat: enhance image loading and sanitization
- Standardized image loading to lazy for consistency in modal previews - Expanded allowed attributes for sanitization to support additional image properties - Introduced an exclusive filter to exclude specific images by class during sanitization
This commit is contained in:
@@ -41,7 +41,7 @@ function getImages($, item, { staticProxy, id, index, title }) {
|
||||
<img src="${staticProxy + url}" alt="${title}" loading="${index > 15 ? 'eager' : 'lazy'}" />
|
||||
</button>
|
||||
<button class="image-preview-button modal" id="${popoverId}" popovertarget="${popoverId}" popovertargetaction="hide" popover>
|
||||
<img class="modal-img" src="${staticProxy + url}" alt="${title}" loading="${index > 15 ? 'eager' : 'lazy'}" />
|
||||
<img class="modal-img" src="${staticProxy + url}" alt="${title}" loading="lazy" />
|
||||
</button>
|
||||
`
|
||||
})?.get()
|
||||
|
||||
Reference in New Issue
Block a user