wet-boew/wet-boew — pull request #4072 by patheard (2013-12-14 03:54:51+00:00)
Title: Toggle: optimized aria attribute setting

This PR optimizes the `setAria` function of the plugin:

1. switched to vanilla JavaScript for speed, and
1. eliminated extra looping to set `role` attributes of tabs and panels.

@pjackson28 in my testing this made the init of the plugin negligible (~0ms) for most loads of the pages using toggle.