Pastebin not found, kbenoit.
I’ve been looking at the CPU load since I noticed my laptop fan going full blast. By default jQuery updates every 13 ms. The load lasts longer on slow transitions. The load is higher if you have more than one widget in transition at the same time. Those can be nudged by changing the widget timeouts in Dashboard. But changing the 13 ms. requires some code. The simplest kludge is to insert this after each <script> in the PHP:
jQuery.fx.interval = 200;
NOTE: this will affect all jQuery animations.
That’s for a 200ms update interval. I’m experimenting with 50ms and it looks fine.
I also have another typo fix, line 186:
if ( !isset($instance['source']) || empty($instance['source']) ) {
$instance['source'] == 'links';
$link_category_display = 'block';
Should be:
if ( !isset($instance['source']) || empty($instance['source']) ) {
$instance['source'] = 'links';
$link_category_display = 'block';