I tried searching the forum but couldn’t find what I needed. Apologies if I don’t have the right info here.
Just wondering how I can optimize the speed s2member which I have running on my photography school here:
I have s2member pro version 120309 running on wordpress 3.3.1 running on my server at rackspace cloud sites. I also have the WP Super Cache plugin running and a couple other plugins.
For some reason it appears as though some of the s2member plugin php files are making the site load very slowly. I know these website speed test things aren’t super accurate but take a look at this:
My friend who is way more technical than me looked into this and he noticed the following:
These two files are being loaded on seemingly every page on the site:
Both take a significant amount of time to load and are significantly
slowing the page loads of the site. It was measured between 700-1500ms
of drag (including request, wait, and download).
Ideally, as I see it:
– global CSS and JS should be centralized and loaded as static files so you could move them to your CDN. They could then be loaded on every page w/ little overhead.
– custom CSS and JS loaded through s2member-o.php would only be loaded on the pages that needed them (signup form, edit profile form?) so it doesnt have to send 3 php requests to the server for every single page that loads on the site
– even better, though would require a completely different code path, would be removing all variables from the JS/CSS (don’t think there are any in the CSS) and injecting that information into the HTML so that all JS/CSS can be shared whether logged out or in. Maybe even as raw json injected below the form that’s then loaded by the shared JS.
What I looked into:
– how these files are being loaded and if they could be moved to only load when the form is loaded. unfortunately the way the wordpress pages load, I couldn’t make this work correctly
– some of the CSS/JS in these files may be used throughout the site. I don’t know this for sure, but there’s some stuff to do with badges that might be dispersed throughout the site? This would be something that the plugin creator would know more about.
I’m just wondering what I can do to speed things up?
Thanks for any help!