You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/10/25 10:31:56 UTC

[GitHub] [apisix-website] juzhiyuan opened a new issue #675: speed up loading JS assets

juzhiyuan opened a new issue #675:
URL: https://github.com/apache/apisix-website/issues/675


   **Actual Behaviour**
   
   Hi, we're using https://docusaurus.io/ V2 to build our website, when it's built after running `yarn build`, it will generate many JS assets under the `build/assets/js/` directory, e.g https://github.com/apache/apisix-website/tree/asf-site/assets/js
   
   And when we visit our website, it will first load the `runtime~main.xxxx.js` file, and it will load all necessary other JS assets asynchronously, but with `relative URL` like the following screenshot:
   
   ![image](https://user-images.githubusercontent.com/2106987/138677563-1f84dec6-6f18-464f-8f62-99acd8875730.png)
   
   **Expected Behaviour**
   
   `https://apisix.apache.org/assets/js/69365.a39fd14a.js`.
   
   This URL is correct but I would suggest that we load them from jsDelivr, too. So users in China could visit faster.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan commented on issue #675: speed up loading JS assets

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #675:
URL: https://github.com/apache/apisix-website/issues/675#issuecomment-950777428


   Here has one PR I submitted yesterday, due to some issues I reverted it, you could refer to https://github.com/apache/apisix-website/pull/670
   
   see https://github.com/apache/apisix-website/pull/671#issuecomment-950256617


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org