I have been taking a close look at our (wordpress) site performance lately. We use OneAll to enable social login and registration. Great product!
I note there is a Oneall JS that loads on every page:
URL:
http://[myacct].api.oneall.com/socialize/library.jsHost: [myacct].api.oneall.com
This adds 0.3 seconds to every page load, including the homepage. Is it necessary - can we remove from the homepage and add the JS just to the pages where we actually use Oneall, such as login?
Thanks
Brian
Answers
I tried the async mode, it does help but yes long term it would be good to only load where needed especially when it's 2 pages out of 2,000. I will look for a third party plugin to allow control or suppression over individual elements in a page load, there are plenty of other things loaded that are not used on every page - the home page of course being the most important.
Thanks for the response!
wp_register_script()
wp_enqueue_script()
- is that part of the future plan!
Thanks