Sorry! Internet Explorer is not supported on this site. Please view on Chrome, Firefox, or Edge.

Having fun at Zao is one of our values. We’ve put limited animated flourishes throughout our site to communicate our love of levity. We also recognize that onscreen movement is not fun or possible for everyone. We've turned off all our animations for you per your browser's request to limit motion. That said, we don't want you to miss out on the party.

Here's a funny joke to enjoy!

Where does the General keep his armies?

In his sleevies!

Zao Adopts Asset Queue Manager

You’ve already heard our good news about CMB2…but wait, there’s more! We recently adopted Asset Queue Manager, a WordPress plugin that allows experienced front-end performance engineers to take control over the scripts and styles enqueued on their site(s).

About Asset Queue Manager

AQM is a well-liked and regarded plugin built by a developer from the UK named Nate Wright.

When plugins are bad citizens, they enqueue their assets everywhere on the front-end, which means their style sheets and JavaScript files are loaded everywhere, regardless of where they need to be. AQM allows you to manage whether or not those assets are actually enqueued. It’s a fantastic tool based on a great idea, and it has a really cool UI.

How we got involved

We started using AQM for the Cancer Tutor site. The homepage was taking five or six seconds to load (which as I’m sure you know, is just terrible). Justin looked at all the assets being loaded (WooCommerce, Google Maps plugin, etc.) and quickly realized that many of those weren’t needed on the front of the site. Zao used AQM to dequeue those assets and brought the homepage load time down to one and a half seconds.

AQM has one downfall: if a user dequeues an asset on the front end of the site, it dequeues it everywhere. That meant that for a site like Cancer Tutor, dequeuing WooCommerce and Google Maps meant that their store and their clinics page (where folks can use the maps function to find their closest clinic) stopped loading those assets, too.

Justin had noticed that we weren’t the only ones who wanted for a specific feature that would resolve this issue; he had seen other people were asking for it in the Post Status Slack room. Justin reached out to Nate and asked if he’d accept a pull request if we created this feature. Nate replied that he hadn’t updated the plugin for over a year and asked if Zao wanted to adopt the plugin. Naturally, we said yes!

Now, we’re working on adding that feature, cleaning up the code base, and freshening up the UI a little bit. We’ll be pushing this all soon, so keep an eye out!

WordPress collaboration prevails

This is one of the reasons that the intersection of the WordPress community and WordPress industry is so cool. A real world business problem, driven by a client need, is improving open-source software and creating collaborative relationships between developers. We live for this!

Join the Conversation


Leave a comment

Your email address will not be published. Required fields are marked *