feat(frontend): replace lazy loading with zibll lazysizes
This commit is contained in:
1 parent
02571eecd6
commit
435ee1daa7
78 files changed
+1515
-909
No files matched your search
@@ -137,8 +137,7 @@ function aksrt_render_slider(array $args = []): string {
|
||||
}
|
||||
|
||||
if ($image) {
|
||||
$html .= '<img class="swiper-lazy fit-cover" data-src="' . esc_url($image) . '" src="' . esc_url($image) . '" alt="' . esc_attr($alt) . '" loading="lazy">';
|
||||
$html .= '<div class="swiper-lazy-preloader"></div>';
|
||||
$html .= '<img' . aksrt_get_lazy_attr('lazy_sider', (string) $image, 'fit-cover', aksrt_get_lazy_thumb('lg')) . ' alt="' . esc_attr($alt) . '">';
|
||||
}
|
||||
|
||||
if ($link) {
|
||||
|
||||
Reference in new issue
Block a user