ates();
            });
        }

        function loadMoreCertificates() {
            const loadingMessage = document.getElementById('loading-message');
            loadingMessage.style.display = 'block';
            
            const url = new URL("{{ url_for('main.load_more') }}", window.location.origin);
            url.searchParams.append('type', 'certificates');
            if (lastCertId !== null) url.searchParams.append('last_id', lastCertId);
            if (lastCertTimestamp !== null) url.searc