s/refs/heads/main/community_datasets.json';

            // Add a consistent fallback for images that fail to load
            function createFallbackImageUrl(width, height) {
                // Return a placeholder image URL with the given dimensions
                return `/api/placeholder/${width}/${height}`;
            }

            // Pre-load images when switching views
            function preloadImagesForView() {
                // Reset lazy loading when changing views
                initLazyLoa