Browser support

Bliss is just a collection of helpers and light syntactic sugar over Vanilla JS. It does not account for browser bugs or lack of support of certain APIs, although it only uses features that are both supported across most modern browsers and can be polyfilled. For example, it uses Promises throughout (supported by all latest browsers, can be polyfilled), but — despite the temptation — notarrow functions (syntactic extension, cannot be polyfilled). The idea is that you can extend support by using polyfills, depending on your needs.

We have partnered with the awesome service polyfill.io by the Financial Times to provide a blissfuljs alias that only bundles the necessary polyfills for Bliss, and nothing more.
In addition, due to how polyfill.io works, only the ones needed for the current browser will be loaded, so you can support older browsers without penalizing modern browsers with extra KBs.
You just include it before Bliss, like so:

Note that apart from Promises, all other polyfills can be loaded conditionally, by using Bliss’ $.include().

Download

Choose your download:

Bliss Full
Adds $() and $$() global methods and a _ property on elements and arrays.
Wraps addEventListener and removeEventListener to call $.bind() and $.unbind(), to track events and more expanded syntax.
Good for when you control the environment.
Bliss Shy
Does not touch the host environment in any way, except to add one global Bliss variable.
Perfect for inclusion in a third-party library, or any other case where you don’t control the environment. Slightly smaller size.