You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2022/06/28 09:20:48 UTC
[apisix-website] branch master updated: feat: use ECDN to load static files and reduce animation (#1166)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new ae2be8247c2 feat: use ECDN to load static files and reduce animation (#1166)
ae2be8247c2 is described below
commit ae2be8247c2b436615833c11c3480574839150e9
Author: 琚致远 <ju...@apache.org>
AuthorDate: Tue Jun 28 17:20:43 2022 +0800
feat: use ECDN to load static files and reduce animation (#1166)
---
website/config/ssrTemplate.js | 6 +++---
website/src/components/sections/HeroSection.tsx | 2 --
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/website/config/ssrTemplate.js b/website/config/ssrTemplate.js
index 07f6e3b7774..f67269bc0a1 100644
--- a/website/config/ssrTemplate.js
+++ b/website/config/ssrTemplate.js
@@ -14,10 +14,10 @@ module.exports = {
<%~ metaAttribute %>
<% }); %>
<% it.stylesheets.forEach((stylesheet) => { %>
- <link rel="stylesheet" href="<%= it.baseUrl %><%= stylesheet %>" />
+ <link rel="stylesheet" href="https://apisix-website-static.apiseven.com/<%= stylesheet %>" />
<% }); %>
<% it.scripts.forEach((script) => { %>
- <link rel="preload" href="<%= it.baseUrl %><%= script %>" as="script">
+ <link rel="preload" href="https://apisix-website-static.apiseven.com/<%= script %>" as="script">
<% }); %>
<!-- Matomo from the ASF -->
<script>
@@ -45,7 +45,7 @@ module.exports = {
<%~ it.appHtml %>
</div>
<% it.scripts.forEach((script) => { %>
- <script src="<%= it.baseUrl %><%= script %>"></script>
+ <script src="https://apisix-website-static.apiseven.com/<%= script %>"></script>
<% }); %>
<%~ it.postBodyTags %>
</body>
diff --git a/website/src/components/sections/HeroSection.tsx b/website/src/components/sections/HeroSection.tsx
index 46e1387efab..9ef8edccba7 100644
--- a/website/src/components/sections/HeroSection.tsx
+++ b/website/src/components/sections/HeroSection.tsx
@@ -18,8 +18,6 @@ const HeroSection: FC = () => {
useEffect(() => {
const tl = gsap.timeline({
defaults: {
- delay: window.innerWidth >= 768 ? 1.5 : 0.01,
- duration: 0.5,
ease: 'Expo.easeInOut',
},
});