|Posted: Tuesday Jun 4th, 2013 at 12:08 pm #51333|
Jason mentioned it can be hidden via CSS if we don’t want to use it, but this still results in an unnecessary script download and header response call. Therefore, I’d prefer to remove it entirely for the purpos of site speed optimization.
This technique (if put in functions.php) appears to really remove it without affecting s2member. This idea originates here: http://beneverard.co.uk/blog/wordpress-loading-jquery-correctly-version-2/
I wanted to run it by support to confirm if it’s ok:
If I just used
it would prevent s2member’s validation script from loading, but since I’m re-registering and re-queueing it as an empty file path, s2member thinks it’s still there and happily loads its own script without loading the password meter script.
By all appearances, it doesn’t look like s2member actually uses the file, even indirectly, so would this be safe to use?
By the way, I’ve been using the above technique to load jQuery (which s2member also specifies as a “dependent” script), and things have been running fine all this time.
I assume doing the same to the password meter script would be ok, but unlike my jQuery implementation, I’m not just repositioning the file–I’m taking it out of the picture altogether.
- s2Member® Products