Hi, Camilo. Thanks for your interest in Paid Memberships Pro and performance.
We are always open to ways to improve performance. That said, it’s not always easy. WordPress and PMPro are complicated pieces of software being used in a lot of different ways.
For your specific request, that file is about 34kb, only used by admins, and cached immediately by modern browsers. We’re not concerned about reducing the load there vs the downside of not having that JS available when we need it. For e.g. PMPro loads things on the edit post page, other plugins settings pages, some of our add ons need it, third party builders may need it.
There is some more info on this issue here: https://github.com/strangerstudios/paid-memberships-pro/pull/2024#issuecomment-1130057471
It should be noted that compared to your typical WP plugin, PMPro does A LOT of things, and so it is going to need more resources, more DB queries, more memory, etc. In practice, we try to keep our load comparable to other ecommerce and transaction plugins like WooCommerce or Easy Digital Downloads.
We sometimes, e.g. when loading JS files, sacrifice small amounts of performance in order to make things more robust or easier for users and devs to work with.
In some cases, e.g. when exporting CSV files or running searches and complex queries will sacrifice usability and robustness to eek out an impactful performance gain.
If you are scaling a WP site to many thousands of users and posts, the same kinds of things that scale a website in general will scale PMPro. So e.g. if time to first load is super important to you for your admins or probably more likely your end users, there are many ways to hook into how JS and other assets are loaded to cache them optimally for your site. People have lots of different opinions and the optimal solution will always depend on the specific site and setup. Whenever possible, we’d like to make sure that they way we load things (e.g. using the WP core enqueue functions which can be hooked into) is done in a way that people can customize.
Let me know if this answers your questions or if you have other specific concerns. Feel free to search around the issues and PRs on our GitHub repo to see if someone else is already thinking about those things or working on them. There are for sure ways we can safely improve performance that just need a bit more attention and work from us. We have quite a few improvements in these areas coming out in our 3.0 release, dropping soon.