Freemius / wordpress-sdk

https://freemius.com
GNU General Public License v3.0
267 stars 77 forks source link

Reduce the amount of inline code added to the "Plugins" page #413

Open YahnisElsts opened 4 years ago

YahnisElsts commented 4 years ago

🚀 feature request

Description

One of my users reports that the Freemius SDK outputs about 22 KB of HTML/JS on the "Plugins" page even when they've opted out. They consider this excessive bloat. I've checked this on a test site, and it looks like the bulk of the inline code is related to an opt-out dialog and the deactivation reason dialog.

Describe the solution you'd like

Please reduce the amount of inline HTML/JS/CSS that Freemius SDK adds to admin pages. Preferably for everyone, but at least for users who have explicitly opted out.

Describe alternatives you've considered

I suppose I could check the opt-in status and skip loading (parts of) the SDK.

niklasp commented 4 years ago

I would like that too. Put some more efforts in cleaning the existing code than developing new features please.