Title: Performance
Last modified: August 21, 2016

---

# Performance

 *  [indole](https://wordpress.org/support/users/indole/)
 * (@indole)
 * [13 years ago](https://wordpress.org/support/topic/performance-4/)
 * [P3 Plugin Performance Profiler](http://www.wordpress.org/extend/plugins/p3-profiler)
   shows that Persona accounts for 50% of the runtime, even when I restrict the 
   test session to non wp-admin pages!
 * To verify this result, I had WebPagetest average 10 tests with the Persona [plugin enabled](http://www.webpagetest.org/result/130512_94_12KA/)
   and again with the Persona [plugin disabled](http://www.webpagetest.org/result/130512_AT_136T/)(
   note that the “first load” test was only run once/is invalid as a measure). Turning
   Persona off shaved ~1.5 seconds from the time-to-first-byte, roughly matching
   the stats reported by P3.
 * What’s up?

Viewing 1 replies (of 1 total)

 *  [tzdk](https://wordpress.org/support/users/tzdk/)
 * (@tzdk)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/performance-4/#post-3745351)
 * Code? Mozilla just released a “beta 2” of Persona [http://identity.mozilla.com/post/47541633049/persona-beta-2](http://identity.mozilla.com/post/47541633049/persona-beta-2)
   so that might improve numbers.
 * I do not tinker with Persona right now, but when I did I made it only work when
   login part of comment form was open. There is a hook or 2 that fits. Only time
   it is needed, at least if you do not want login to site itself. Helped. Was not
   horrible, also not super light. Must try new – perhaps this plugin need to be
   updated for beta 2 compatibility?
 * Best fix would be zero loading at all. Not until you click a PERSONA button. 
   Or if not click then very lazy loading, like some social bookmarking scripts 
   offer. Socialite, in WordPress plugin [http://wordpress.org/plugins/wpsocialite/](http://wordpress.org/plugins/wpsocialite/)
   is one example. On Socialite github issues page there is a guy hiding it all 
   via a button, I have tried that – works 100%. Action/load on hover or scrolling
   past button feels annoying to me. Also not performance proof.
 * Now I rewind memory I am not sure Socialite github has ready to use code. I found
   some I did and it does not look like copy/paste, more like what ever works! There
   is talk about this, I know that. Must be tutorials and such?
 * content is a variable for #content. I would like same effect for Persona. Even
   it means make a “light” version only working on comments.
 *     ```
       if ($("#social-buttons-load").length) {
       	Socialite.setup ({
       		twitter:	 { lang: 'da' },
       		googleplus:	 { lang: 'da' },
       		facebook:	 { lang: 'da_DK' }
       	});
   
       	Socialite.process(document.getElementById('social-buttons'));
       	var btn = document.getElementById('social-buttons-load');
       	btn.disabled = false;
   
       	$("#social-buttons-load").click(function() {
       		content.find("ul.social-buttons").css({display:"inline-block"});
       		$(this).css({display:"none"});
       	});
       }
       ```
   
 * There is more, for injected HTML button one line is important:
 *     ```
       <input id="social-buttons-load" disabled="disabled" onclick="javascript:Socialite.load(document.getElementById('social-buttons'));this.disabled=true;return false;" type="button" value="CLICK ME!">
       ```
   
 * Rest is just div, ul, li, a. Should be possible to do the same with Persona. 
   There is a button already so not really a big change.

Viewing 1 replies (of 1 total)

The topic ‘Performance’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/browserid.svg)
 * [Mozilla Persona (BrowserID)](https://wordpress.org/plugins/browserid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/browserid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/browserid/)
 * [Active Topics](https://wordpress.org/support/plugin/browserid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/browserid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/browserid/reviews/)

## Tags

 * [performance](https://wordpress.org/support/topic-tag/performance/)

 * 1 reply
 * 2 participants
 * Last reply from: [tzdk](https://wordpress.org/support/users/tzdk/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/performance-4/#post-3745351)
 * Status: not resolved