We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0cf949 commit e398650Copy full SHA for e398650
js13kpwa/app.js
@@ -55,9 +55,9 @@ function randomNotification() {
55
56
// Progressive loading images
57
const imagesToLoad = document.querySelectorAll('img[data-src]');
58
-const loadImages = function (image) {
+const loadImages = (image) => {
59
image.setAttribute('src', image.getAttribute('data-src'));
60
- image.onload = function () {
+ image.onload = () => {
61
image.removeAttribute('data-src');
62
};
63
0 commit comments