Web platform features explorer

Hashbang comments

Widely available since 2022-09-24
Tags: javascript Groups: JavaScript

The #! comment at the absolute start of a script or module is treated as a normal comment and is ignored by the JavaScript engine.

Specifications

Browser support

  • Chrome 74 Released on 2019-04-23
  • Chrome Android 74 Released on 2019-04-24
  • Edge 79 Released on 2020-01-15
  • Firefox 67 Released on 2019-05-21
  • Firefox for Android 67 Released on 2019-05-21
  • Safari 13.1 Released on 2020-03-24
  • Safari on iOS 13.4 Released on 2020-03-24