In the CDN of the Vue project, can the dependencies of Vue itself be loaded on demand or can all third-party libraries in the project be loaded on demand?

This is a question I had when I saw the CDN introduction
I believe many friends will have the same questions as me
Insert image description here
I agree here too Answer

CDN (Content Delivery Network) is a technology that provides fast and reliable content delivery by distributing data to various nodes around the world. In a Vue project, CDN can be used to load Vue itself and its related dependent libraries on demand.

When using Vue, you can choose to introduce Vue's core libraries and common plug-ins and other related dependencies through CDN to achieve on-demand loading. This can reduce the file size of the project, improve the loading speed, and due to the use of CDN, nodes around the world can be used to speed up the transmission of resources.

In addition to Vue itself, you can also choose to introduce other third-party dependent libraries in the project through CDN to achieve on-demand loading. In this way, only the dependent libraries required in the project can be loaded as needed, instead of loading them all.
Insert image description here

It should be noted that the use of CDN requires adding the corresponding CDN link to the project's HTML file and making corresponding modifications in the Vue configuration. For specific usage methods, please refer to Vue's official documentation or other related tutorials.

In fact, it can also be simply understood as only html introduces external addresses. All third-party libraries will be slow loaded on demand.

おすすめ

転載: blog.csdn.net/weixin_45966674/article/details/134960438