Web Browser Support

Composable storefront is designed to leverage the latest web platform standards while supporting a wide range of modern browsers. Understand how to ensure compatibility and performance of your storefront across different web browsers, and learn specific techniques for supporting older browsers if necessary.

Ideally, your storefront will render uniformly in any browser that is used by your customers. However, web browsers do not all support the same web standards, nor do they handle these standards in the same way. For example, there are different ways of interpreting a standard's specifications, deliberate design decisions that result in different outcomes, as well as bugs that are unique to each browser. And for each browser that is supported, there is a resulting implementation effort that includes QA, architectural decisions, and technical decisions. In the end, a balance has to be struck between providing an excellent storefront experience, and supporting (as much as possible) the different web browsers that are out there.

Composable storefront is designed to take advantage of the latest web platform standards, while also allowing you to run your composable storefront in as many different web browsers as possible. However, some older browsers do not support the latest standards, and as a result, these browsers are not supported by composable storefront. Composable storefront actively supports the same browsers that are supported by AngularInformation published on non-SAP site, which means there are end-to-end tests and manual QA done for these browsers (though other browsers that are not supported by Angular may be supported "by accident" - for example, if a browser supports the latest web platform standards). Spartacus only supports those browsers that are supported by Angular because Spartacus follows standard Angular, the Spartacus libraries are kept as clean as possible by intentionally avoiding "browser quirks" in the library code, and there is no planned investment in automated tests of very old browsers.

Although composable storefront might not support older browsers, there are some common techniques that make it possible to support these browsers. The following are some of the steps you can take to get an older browser to work with composable storefront:

  • Configure the TypeScript compiler to transpile to the appropriate version of JavaScript.

  • Add JavaScript polyfills to provide some web features that are not included in older browsers.

  • Leverage PostCSS to (automatically) add vendor prefix style rules where browsers have not incorporated CSS standard syntax.

Working with IE11

IE11 is not supported by composable storefront.

If your composable storefront needs to support IE11, consider the following:

  • Use JavaScript polyfills to add missing browser capabilities. The polyfills are prepared in a newly-rendered Angular CLI application, so it is typically only a matter of "uncommenting" some of these polyfills. For more information, see Browser supportInformation published on non-SAP site in the official Angular documentation.

  • Customize the composable storefront styles, or bring in a custom style layer.

The default composable storefront style library is not prepared for IE11. Since most customers will not use the composable storefront styles in the first place, it is a typical custom effort to build your styles in such a way that they support the required browsers.

The following are some of the standard CSS features that are used in composable storefront styles, and that will not work for IE11:

  • Custom properties, which are used in composable storefront themes, and which are not supported in IE11. For more information, see the browser support tables for custom properties on the Can I Use?Information published on non-SAP site website.

  • Logical properties, which are used for bidirectional text and layout, and which are not supported in IE11. For more information, see the browser support tables for logical properties on the Can I Use?Information published on non-SAP site website.

Mobile and Tablet Support

Composable storefront supports the same browsers that are supported by AngularInformation published on non-SAP site on mobile and tablet platforms.

iOS Browsers

On iOS-based devices, composable storefront supports Safari, Chrome, and other browsers. Although not every browser is tested, composable storefront should work with any iOS browser because all iOS browsers use the Webkit-based iOS browser engine.

Android Browsers

On Android-based devices, composable storefront is tested on Chrome, which is based on Chromium and the Blink layout engine. Any Android browser that uses the same engine will likely work with composable storefront. Other browsers using different browser engines are not tested, but those browsers that use Webkit should work as well.