Skip to content

Update 0.28.6: Deprecation of cdnjs.com Mirrors & Gulp Workflow Changes

Latest
Compare
Choose a tag to compare
@hifocus hifocus released this 27 Apr 22:47
· 1 commit to master since this release

Changes

  • A recent observation is that most if not all cdnjs.com mirrors in China are out-of-sync (staticfile.net, css.loli.net, cdn.bytedance.com) or otherwise inaccessible (cdn.baomitu.com). Therefore, with this update we are opting for fully localised library loading, including jQuery and jquery-qrcode. The one-file usage is still supported, in which cdnjs.com is directly used to include static libraries.
    • Regarding the use of Public CDNs, fastly.jsdelivr.net and cdnjs.cloudflare.com were both amongst the considerations made. We chose the latter because of its relative accessibility in China, lower packet-loss rate at evening 'peak' times despite relatively higher latency.
  • Updated the gulp workflow to include jQuery and jquery-qrcode in addition to some behaviour changes.
  • Minor changes in merger.html regarding behaviour, logic and code comments.
  • Updated README.md.

Overall, all this update does is:

  1. When used with npm, gulp will include all libraries in one file, eliminating reliance on external mirrors
  2. When used as a standalone html, libraries are served through cdnjs.com.

This release will remain as pre-release, pending further observation.

Full Changelog: 0.28.4...0.28.6