Gary

Stay Hungry Stay Foolish

Caniuse

Usage

1
{% caniuse feature @ [periods] %}

or

1
{% can feature @ [periods] %}
  • feature : Search for the feature you want on https://caniuse.com, then click on the hash sign to the left of the search result heading and you will get the unique name of this feature.
  • [periods] : Optional parameter. Select the browser versions to display. Supported values: past_1, past_2, past_3, past_4, past_5, current, future_3, future_2, future_1. If this value is empty, the default value current will be used.

Examples

Caniuse without periods

1
{% caniuse fetch %}

Caniuse with current period

1
{% caniuse sharedarraybuffer @ current %}

Caniuse with future periods

1
{% caniuse loading-lazy-attr @ future_3,future_2,future_1 %}

Caniuse with past periods

1
{% caniuse link-rel-modulepreload @ past_1,past_2,past_3,past_4,past_5 %}
0%