Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h5 cdn files? #50

Closed
Ali1Jamal opened this issue Sep 11, 2021 · 5 comments
Closed

h5 cdn files? #50

Ali1Jamal opened this issue Sep 11, 2021 · 5 comments

Comments

@Ali1Jamal
Copy link

I hope cdn files for h5 will be provided this is well improve network download size alot.

@theolivenbaum
Copy link
Collaborator

That's an excellent idea - I'll take a look on how to add it here

@Ali1Jamal
Copy link
Author

yes cdn files with Brotli algorithm will reduce the size alot.

theolivenbaum added a commit that referenced this issue Sep 11, 2021
Pending packages getting published to npm
@theolivenbaum
Copy link
Collaborator

Hi @Ali1Jamal,

There is now an option on the h5.json file under the html settings to use the CDN instead of the local h5.js:

{
    ...
    "html": {
        ...
        "useCDN" : true,
    }
}

The files are also hosted here: https://cdn.jsdelivr.net/npm/@h5.rocks/h5@latest/dist/

@Ali1Jamal
Copy link
Author

@theolivenbaum thank you for fast replay:
you are doing good job but the size of h5.min.js is (195 kb) because the Content-Encoding type is gzip algorithm not Brotli algorithm ..this is mean The size is a little bigger You can reduce the size to approximately 150kb if you use Brotli ....take a look at this website https://cdnjs.com/ the bridge.net use it because its use Brotli algorithm

@theolivenbaum
Copy link
Collaborator

theolivenbaum commented Sep 12, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants