YVRBET | Quiz



Register



Let’s Get You to the Right Place

Are you already running a business or just getting started?

Help me take my Startup to the next level of performance.

Show me how to start and grow my business from scratch.


// Set actual src if it's in data-src const actualSrc = $el.attr('data-src') || $el.attr('src'); if (actualSrc) $el.attr('src', actualSrc);

// Remove lazy-related attributes $el.removeAttr('loading') .removeAttr('data-src') .removeAttr('data-srcset') .removeAttr('data-lazy-type') .removeAttr('data-lazy') .removeAttr('data-no-lazy');

// Remove lazy-* and similar classes $el.removeClass(function (index, className) { return (className.match(/(^|\s)lazy\S*/g) || []).join(' '); }); }); }

// Apply to images and iframes removeLazyAttributes($('img')); // removeLazyAttributes($('iframe')); });

iframes.forEach(iframe => { const attrs = ['src', 'data-src'];

attrs.forEach(attr => { let val = iframe.getAttribute(attr); if (val && val.includes('youtube.com/embed')) { // Check if rel=0 is already present if (!val.includes('rel=0')) { // Use appropriate separator const sep = val.includes('?') ? '&' : '?'; val += `${sep}rel=0`; iframe.setAttribute(attr, val); } } }); }); });