Skip to content

Commit

Permalink
refactor: remove loading attribute when zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Jul 8, 2020
1 parent aebb316 commit df1d4d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/medium-zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ const mediumZoom = (selector, options = {}) => {

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

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

0 comments on commit df1d4d9

Please sign in to comment.