Skip to main content

How to use the slim SDK to improve performance?

The Axeptio slim SDK is a lighter version without polyfills, reducing script weight to improve SEO performance.

Written by Manon Manso
Updated today

The slim SDK is a lighter version of the Axeptio SDK (103 KB instead of 150 KB) that excludes polyfills for older browsers. It improves your page performance scores without changing widget behavior.

What is the difference between the standard SDK and the slim SDK?

The standard SDK includes the core-js library (polyfills) for compatibility with older browsers. The slim SDK removes these polyfills, reducing script weight.

Feature

Standard SDK

Slim SDK

Size

~150 KB

~103 KB

Polyfills (core-js)

Included

Not included

Old browser compatibility

Yes

No (requires your own polyfills)

Widget features

Identical

Identical

When should you use the slim SDK?

  • Your site already includes its own polyfills (core-js or equivalent).

  • You only target modern browsers (recent Chrome, Firefox, Safari, Edge).

  • You want to optimize your Lighthouse / Core Web Vitals score.

When should you keep the standard SDK?

If a significant portion of your audience uses older browsers (IE11, older Safari) and you don't have your own polyfills, keep the standard SDK to ensure proper widget functionality.

How to switch to the slim SDK?

Replace the script URL in your integration:

// Standard SDK
src="https://static.axept.io/sdk.js"// Slim SDK
src="https://static.axept.io/sdk-slim.js"

No other changes are needed. Widget functionality remains identical.

]]>

Did this answer your question?