Version 4.7.5: AMP support and a 40% smaller JavaScript bundle

Published on by

We just released version 4.7.5 of Mailchimp for WordPress, and it comes with two changes worth a dedicated mention.

AMP compatibility

Sign-up forms now work correctly on AMP pages, thanks to a contribution from Claudiu Lodromanean.

AMP is a framework for building fast-loading web pages, originally developed by Google. AMP pages run in a restricted environment with strict rules about what JavaScript is allowed to do. Before this update, our forms would silently fail on AMP pages because they relied on JavaScript patterns that AMP doesn’t permit.

If you’re using the official AMP plugin for WordPress, your sign-up forms will now work automatically on AMP-served pages with no extra configuration needed.

40% smaller JavaScript

We also made significant cuts to the JavaScript that powers sign-up forms on the front end of your site.

The file is now 40% smaller than it was in the previous version. For most visitors this will be imperceptible, but on slow connections or mobile networks every kilobyte matters. Smaller JavaScript also means less parsing work for the browser, so forms become interactive slightly sooner.

This continues the work we started in 4.6.0, where we dropped our jQuery dependency and cut the file size by more than half.

Updating

You can update directly from your WordPress admin area. The update is available on WordPress.org as well.

As always, if you run into anything unexpected after updating, feel free to get in touch.