diff --git a/content/en/_index.md b/content/en/_index.md index f171c22b5..306d6ab7e 100644 --- a/content/en/_index.md +++ b/content/en/_index.md @@ -194,7 +194,7 @@ section6: section7: title: Capability Architecture​​ - image: /images/home/arch-en.png + image: /images/home/arch-en.svg section8: title: ​​Stay True to Open Source, Keep Contributing to Cloud Native diff --git a/layouts/index.html b/layouts/index.html index 416983d9b..156cf1435 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -427,6 +427,18 @@ }; + function preloadImages() { + const imageUrls = [ + '/images/home/4.png', + '/images/home/8.png' + ]; + + imageUrls.forEach(url => { + const img = new Image(); + img.src = url; + }); + } + $(document).ready(function () { if ($('.tab-div li.active').length === 0) { $('.tab-div li:first').addClass('active'); @@ -435,6 +447,8 @@ if ($('.content-section.active').length === 0) { $('.content-section:first').addClass('active').show(); } + + preloadImages(); tabCarousel(); }); diff --git a/static/images/home/arch-cn.png b/static/images/home/arch-cn.png deleted file mode 100644 index c5846a172..000000000 Binary files a/static/images/home/arch-cn.png and /dev/null differ diff --git a/static/images/home/arch-cn.svg b/static/images/home/arch-cn.svg index d4e0f5c7d..77be85526 100644 --- a/static/images/home/arch-cn.svg +++ b/static/images/home/arch-cn.svg @@ -115,9 +115,9 @@ - - - + + + @@ -178,15 +178,15 @@ - + - + - + diff --git a/static/images/home/arch-en.png b/static/images/home/arch-en.png deleted file mode 100644 index bfe67ea51..000000000 Binary files a/static/images/home/arch-en.png and /dev/null differ diff --git a/static/images/home/arch-en.svg b/static/images/home/arch-en.svg new file mode 100644 index 000000000..0abc97e20 --- /dev/null +++ b/static/images/home/arch-en.svg @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/images/home/banner-cn.png b/static/images/home/banner-cn.png index a387274ab..b45295ee7 100644 Binary files a/static/images/home/banner-cn.png and b/static/images/home/banner-cn.png differ diff --git a/static/images/home/banner-en.png b/static/images/home/banner-en.png index 2a55ed786..801da25fe 100644 Binary files a/static/images/home/banner-en.png and b/static/images/home/banner-en.png differ