Skip to content

Commit df1d4d9

Browse files
committedJul 8, 2020
refactor: remove loading attribute when zooming
1 parent aebb316 commit df1d4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/medium-zoom.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ const mediumZoom = (selector, options = {}) => {
381381

382382
// In Firefox, the `loading` attribute needs to be set to `eager` (default
383383
// value) for the load event to be fired.
384-
active.zoomedHd.setAttribute('loading', '')
384+
active.zoomedHd.removeAttribute('loading')
385385

386386
// Wait for the load event of the hd image. This will fire if the image
387387
// is already cached.

0 commit comments

Comments
 (0)
Please sign in to comment.