awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
921 stars 266 forks source link

Module size optimization for production #766

Open peterwiebe opened 7 months ago

peterwiebe commented 7 months ago

I am working on a project that has 10s of millions of visitors per month and we are trying to optimize the first load experience. One of the biggest issues we are experiencing on the web is the amount of JavaScript that is required on first load. We have identified that the AWS utilities for connecting to appsync is heavy and ultimately required on all pages of our site.

I have included a screenshot, for reference, of the cost of using these utilities - we need to either shrink these packages or replace them with something more efficient. Screenshot 2024-02-15 at 11 26 31 AM

daweto commented 4 months ago

Hi! @peterwiebe did you manage to find an alternate solution to your problem? I'm also looking to reduce module size in production. 🧐