Title: Please consider reducing frontend javascript
Last modified: January 21, 2018

---

# Please consider reducing frontend javascript

 *  [tschopo](https://wordpress.org/support/users/tschopo/)
 * (@tschopo)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/please-consider-reducing-frontend-javascript/)
 * I like this Plugin, but I care about the performance of my websites.
    Is it really
   necessary to add over 350kb (10000+ lines of code) of javascript just for the
   frontend form? Mailpoet puts the largest constraints on the loading times of 
   my website. Please evaluate if you need to use all these libraries for the subcribe
   form. edit: I can use the php API to build a light weight form.
 * This plugin is better than alternatives I used before. I also like the fancy 
   Newsletter-Builder and the php api.
    -  This topic was modified 8 years, 2 months ago by [tschopo](https://wordpress.org/support/users/tschopo/).
      Reason: Found a solution, but would still like a more lightweight form

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [MailPoet](https://wordpress.org/support/users/mailpoet/)
 * (@mailpoet)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/please-consider-reducing-frontend-javascript/#post-9917223)
 * Hey! With gzip enabled on the server, the JS takes ~51KB
 * Can you confirm that you have the gzip library installed?
 *  Thread Starter [tschopo](https://wordpress.org/support/users/tschopo/)
 * (@tschopo)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/please-consider-reducing-frontend-javascript/#post-9917273)
 * If every plugin adds huge libraries (with bad dependency handling), this leads
   to a bloated slow website.
 * I wrote my own form handler (~50 lines of js, with nice display of response messages,
   ajax, spam protection and error handling). the default form also seems to be 
   buggy? For example it doesn’t detect if subscriber is already subscribed.
    -  This reply was modified 8 years, 2 months ago by [tschopo](https://wordpress.org/support/users/tschopo/).
 *  Plugin Author [MailPoet](https://wordpress.org/support/users/mailpoet/)
 * (@mailpoet)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/please-consider-reducing-frontend-javascript/#post-9918659)
 * Yes, we could improve the JS. Agreed. At this stage, we feel that 50kb on gzip
   is fair enough.
 * In regards to this observation:
 * >For example it doesn’t detect if subscriber is already subscribed.
 * For security and privacy, we don’t display to visitors if a user is already subscribed!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Please consider reducing frontend javascript’ is closed to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [MailPoet](https://wordpress.org/support/users/mailpoet/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/please-consider-reducing-frontend-javascript/#post-9918659)