MediaWiki:Common.js: различия между версиями

м избыточно
- старое
Строка 188: Строка 188:
             iframe.setAttribute('loading', 'lazy');
             iframe.setAttribute('loading', 'lazy');
             iframe.setAttribute('importance', 'low');
             iframe.setAttribute('importance', 'low');
            iframe.addEventListener('error', function() {
                console.error('Rutube iframe failed to load:', videoId);
                if (embed.parentNode) {
                    embed.innerHTML = '<p style="padding: 20px; text-align: center; color: #666;">Не удалось загрузить видео</p>';
                }
            });


             iframe.addEventListener('error', function() {
             iframe.addEventListener('error', function() {