Latest Update: April 18, 2025
Weekly Chart
document.addEventListener(“DOMContentLoaded”, function() { document.querySelectorAll(“.read-more-btn”).forEach(function(button) { console.log(“Found:”, button); // Debugging button.addEventListener(“click”, function() { let termText = this.previousElementSibling; if (termText) { termText.classList.toggle(“expanded”); this.textContent = termText.classList.contains(“expanded”) ? “Read Less” : “Read More”; } }); }); });
document.addEventListener(“DOMContentLoaded”, function () { function lazyLoadSpotify() { document.querySelectorAll(‘.spotify-preview-block iframe[data-src]’).forEach(function (iframe) { // Load iframe only when it enters viewport OR if it’s missing if (!iframe.src && iframe.getBoundingClientRect().top < window.innerHeight) { iframe.src = iframe.dataset.src; } }); } function forceReloadOnDesktop() { if (window.innerWidth > 768) { // Only for desktop document.querySelectorAll(‘.spotify-preview-block iframe’).forEach(function (iframe) { if (!iframe.src) { iframe.src = iframe.dataset.src; } }); } } // Run lazy load on first load lazyLoadSpotify(); // Run lazy load on scroll & resize window.addEventListener(“scroll”, lazyLoadSpotify); window.addEventListener(“resize”, lazyLoadSpotify); // Run lazy load after AJAX pagination document.addEventListener(“ajaxComplete”, function () { setTimeout(() => { console.log(“AJAX Loaded – Running Lazy Load Fix”); lazyLoadSpotify(); forceReloadOnDesktop(); // Force reload if iframe missing }, 500); }); // Ensure desktop loads properly (force reload if necessary) setTimeout(forceReloadOnDesktop, 1000); });