8000 CDN / External scripts import in browser · Issue #1 · umijs/sula-real · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
CDN / External scripts import in browser #1
Open
@KrishnaPG

Description

@KrishnaPG

The webpack compilation times and the output size are large.

How to load the eCharts, antd etc. directly from CDN in the HTML tag (instead of bundling with the page) ? This allows to reduce the build output size as well as reuse the browser cache loading the CDN files (and reduce the bandwidth transfer on static site hosting).

For example:

<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/4.8.0/echarts.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.js"></script>

and remove the npm dependencies in the package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0