We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd34c0c commit bb8be75Copy full SHA for bb8be75
src/loading-attribute-polyfill.js
@@ -50,8 +50,8 @@ if ('IntersectionObserver' in window) {
50
* @param {String} urlString The URL to remove the URL query parts from
51
*/
52
function removeLazyPolyfillURLParts(urlString) {
53
- let url = new URL(urlString),
54
- params = url.searchParams;
+ let url = new URL(urlString);
+ let params = url.searchParams;
55
56
params.delete('loading');
57
params.delete('image-width');
@@ -77,7 +77,6 @@ function createRegularReference(lazyItem) {
77
mediaItems.push(lazyItem);
78
79
mediaItems.forEach((item) => {
80
-
81
if (item.hasAttribute('src')) {
82
item.src = removeLazyPolyfillURLParts(item.src);
83
}
0 commit comments