Closed Ali1Jamal closed 2 years ago
That's an excellent idea - I'll take a look on how to add it here
yes cdn files with Brotli algorithm will reduce the size alot.
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/
@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
I'll check it out, thought it would be negotiated automatically between the browser and the CDN...
On Sun, Sep 12, 2021, 5:12 PM Ali Jamal @.***> wrote:
@theolivenbaum https://github.com/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
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/theolivenbaum/h5/issues/50#issuecomment-917654861, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDCOA6PGNYQYFI4R7PQDR3UBS7NPANCNFSM5D2X5GNQ .
I hope cdn files for h5 will be provided this is well improve network download size alot.