Alasql: AlaSQL pre-compressed with Brotli:11 on open source CDN

Created on 22 Jun 2020  路  8Comments  路  Source: agershun/alasql

I have added AlaSQL on PageCDN. Current size of alasql.min.js on PageCDN is just 72 KB that is around 12 KB smaller than normal due to better compression. The files are available on CDN here: https://pagecdn.com/lib/alasql

Adding this CDN link on download page is helpful for users looking to reduce JS size. If you allow, do I proceed with a PR to add it to installation section?

Thanks.

All 8 comments

Interesting. How are the files updated?

Currently it pulls files from this GitHub repo periodically. If you want it to update CDN in real time as new releases are made available, I can send the webhook URL in private to set this up.

It is also possible to link to the latest version of the URL by replacing the version number with the keyword 'latest' in CDN URL, like this.

Does that answer your question?

Oh. For it to be part of the formal documentation we need it to fetch the files from the latest release. That can be a release on github or npm - but fetching from the repo "sometimes" will lead to them having a version that is not released yet. Is that something we can work on?

Yes, we can do this via GitHub hooks if this is workable for you. Please send me a message here [email protected]

Im glad that you share the code in a smaller format, but for this to work we need pagecnd to tap into the published npm package (like most other platforms). At the moment the build is in the repo, but this will change soon.

Ok. We can work on it. Will update this thread in few days.

Thanks.

@mathiasrw Done. It now pulls from npm in real time. Here are the files: https://pagecdn.com/lib/alasql

Example:

https://pagecdn.io/lib/alasql/{version}/alasql.min.js

Insert the version so that the final URL will be:

https://pagecdn.io/lib/alasql/0.6.2/alasql.min.js

Please let me know if I can do anything else.

Thanks.

Lovely!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

songokudbz picture songokudbz  路  5Comments

mathiasrw picture mathiasrw  路  5Comments

mathiasrw picture mathiasrw  路  5Comments

peon501 picture peon501  路  5Comments

carloszimm picture carloszimm  路  3Comments