Aaron Brazell: Asynchronous Events

Continue the discussion

Published

December 16, 2015

Whenever a post is saved, a page is loaded, a comment is created or a template is loaded, WordPress fires off events that, as developers, we have loved and cherished. These events are hooks. While hooks have been the quintessential building blocks of WordPress for over a decade, they come with a cost. Often times, developers will hook functionality into the save_post event, for instance, to fire off a notification to an external service or perform some sort of background task. The more of these tasks are hooked into WordPress, the slower WordPress becomes.

In this talk, I will show you how to alleviate these bottlenecks with asynchronous hooks – hooks that can be used to perform the exact same tasks, but not block the rest of WordPress from running. Through a library created by 10up’s Eric Mann and John Bloch for TechCrunch on WordPress VIP, the overhead of running actions can be reduced to a negligible amount.

Presentation Slides »

Rate this:

Event

WordCamp Baltimore 2015 13

Speakers

Aaron Brazell 3

Tags

Asynchronous events 2
hooks 36
Speed Optimization 54
Web Performance 44

Language

English 10534

Download
MP4: Low, Med, High, Original
OGG: Low
Subtitles
Subtitle this video →
Producer