JS minification compatibility for browser without optional chaining support

When browsing any webflow website with chrome version 79 or less, a JS error is displayed in the console and no interaction work

Uncaught SyntaxError: Unexpected token '.'


There is no error when JS minification is disabled.

According to caniuse, optional chaining incompatibility is about 7% of the global usage.


For some audiences, it can be higher and we’re talking about no JS functioning at all on the whole website. It’s very common to rely on JS for features surch as a navbar dropdown menu.


Babel JS or a similar tool could be used to allow JS minifaciton with old browser versions compatibility ?



  • Pierrick D
  • Oct 21 2023