Topic-icon Need all JavaScript and Images to be local

Support Specialist
9 years 1 month ago #51621 by alzander
Page 3 is the most telling (which is where I think you're looking already). The blue line is generally the line you need to hit for under 4s. On your graph, it was at about 2.5s. I just ran your page through GTMetrix and the blue line was at almost 7s.

On both charts, the first line is really the problem. Yours is 2.32s and mine is 4.25s. That's the time your server is taking to simply process the request and send the 1st byte of data back to the user. Google recommends 200ms (which is frankly impossible for most sites). I try to keep our site at/around 1s.

A re-test of the page showed at 5.9s time, which should normally go down due to server-side caching improvements on the repeat load.

The causes of longer server generation time are:
* Too many plugins enabled
* Too many Joomla or component features enabled
* Server configuration in general. If you're on a very low-cost host (<$5/month), then the resources your site gets will be extremely limited. You may want to consider a hosting plan with a little more oomph

As for the Facebook Javascript, that's being loaded after the blue line. It's good to have that load faster, but again, there really isn't anything you can do about that as it's really on Facebook's end to serve it up fast.. and they are definitely doing everything they can to do so.

Alex
The topic has been locked.
Active Subscriptions:

None
9 years 1 month ago #51640 by webdevtim
That Alex. I just got 7.46 seconds, so it seems that CloudAccess delivery of first byte is quite variable.

We have the $10/month, and they advertise that they are WordPress/Joomla specialists. I just got them to add an Apache module that resolves CloudFlare IPs to the actual originating IPs, I wonder if that is adding and processing time. The suggestion was made by CloudFlare, and I got CloudAccess to accept that suggestion and implement it, so I wouldn't have to install yet another plugin to resolve CloudFlare addresses.

I am just going to have to continue to pare this down until i get load times around 3.5 second and then submit the JFBConnect Apps to Facebook and twitter for approval again.

Thanks for you tireless and thoughtful input.
The topic has been locked.
Support Specialist
9 years 1 month ago #51650 by alzander
The IP fix is mainly for your logs. It's good to have, since, without it, all your visitors will look like they are using CloudFlare IPs. However, it won't have any performance impact, either positive or negative.

I hope you make some progress on things. In general, I'd recommend disabling everything on your site that isn't a core-Joomla features. Then, test again. If things are zippier, start re-enabling features one at a time to hopefully determine the culprit(s).

All the best,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 1 month ago #51653 by webdevtim
The only problem is that I elected to use K2 and that introduces a lot of overhead just by itself.

My CSS file is 12,000 lines long, I will spend the day paring that down to around 2,000 lines. I am also using Twitter Bootstrap, and I realize now that though that is convenient, it is better to just use the jQuery and JavaScript only where needed. Also if I make judicious use of @media queries, I probably don't need Twitter Bootstrap to have a responsive site which means I can avoid all the overhead that Bootstrap introduces. As far as K2, I like the functionality it introduces, I just don't like the overhead.

Thanks for all the time you have invested in trying to help me out. I wish all developers had the ethical sense of duty you seem to have.

I believe that Open Sources development is the model we should all embrace, as it is by nature a very democratic model and a model that would ultimately serve communities better than models championed by guys like Pierre Omidyar, Sergey Brin. or Mark Zuckerberg.

I have installed Drupal on a test site, and perhaps I need to be looking in that direction rather than in the Joomla direction, because I have read that it scales much better than Joomla. To bad some of the core functions aren't developed with compiled languages rather than scripting languages.
The topic has been locked.
Support Specialist
9 years 1 month ago #51654 by alzander
I wouldn't touch Drupal, if I were you. I'm not sure what your traffic is, but scaling is relative. Joomla can handle hundreds of thousands of requests per day. Drupal is useful for investigating if you're getting into millions of visits per day.

As for K2, that file is big.. however, file size overhead of CSS and Javascript is not what you need to focus on. The problem is the server processing of PHP files to generate the HTML that is sent back to the user. That is taking 7s sometimes. The CSS file is transferred to the user *after* the HTML is delivered to them. There is simply some PHP code that is taking too long *or* your server is too slow. Since you're using CloudAccess, even on their cheap plan, 7s is no where near normal. Some other *functionality* on your site is causing the slowdown.

I'd really recommend the steps above to disable PHP code on your site, starting with system plugins, and narrow it down that way. Pruning CSS and JS files will not improve the 7s HTML rendering time whatsoever.
The topic has been locked.
Active Subscriptions:

None
9 years 1 month ago - 9 years 1 month ago #51658 by webdevtim
Thanks Alex, I will just work on the issues you identified until I get consistent "onload" time under 3.55 seconds.

I have to install Drupal, because I want to install CiviCRM on a sub-domain and there is a module CiviEngage that requires CiviCRM to be installed on Drupal, not Joomla or WordPress. Installing Drupal was a no-brainer and setting up a chron tab to allow automatic updates isn't difficult. I will have to learn what is involved to properly install CiciCRM and it's modules however: but this discussion is for another place and another time.
Last edit: 9 years 1 month ago by webdevtim.
The topic has been locked.
Support Specialist
9 years 1 month ago #51661 by alzander
Sounds great. I hope all goes well for you. As always, if you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.