Does shopify minifies the web pixel JS?

Topic summary

A developer is implementing checkout extensibility using a web app pixel and has concerns about large JavaScript files (in the MB range) used for analytics, marketing, and advertising.

Key Questions Raised:

  • Whether Shopify imposes size limits on web pixel JavaScript files
  • If the web pixel bundler (esbuild) automatically minifies code before deployment to client stores
  • Whether developers have control to enable minification for optimizing file size and site loading speed

The discussion remains open with no responses yet, seeking clarification on Shopify’s web pixel build process and optimization capabilities.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

I am working on supporting my app for checkout extensibility by creating web app pixel. I have bunch of JS files logic written, literally they are very large in size (in MBs) for analytics, marketing and advertising purpose.

Questions

  1. Is there any size limit of web pixel JS?
  2. If yes, does web pixel bundler (esbuild) minifies and then deploy the pixel on the client’s shopify store?
  3. If not, do I have the flexibility/control to enable minification of the web pixel JS to reduce the size of web pixel and optimize the speed of the site loading?
1 Like