News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

help optimizing my site with 'yslow' and 'page speed'

Started by steve51184, July 17, 2010, 10:08:10 PM

Previous topic - Next topic

steve51184

hey all i'm using 'yslow' and 'page speed' to optimize my site and i'm using the web based versions at gtmetrix.com to make things a little easier and i've done a lot of them and got my site from a D up to a B but i'm stuck on a few and was hoping i could get some help?

1) 'Minify JavaScript and CSS'

i've done them all but i'm stuck on this one:

http://pastebin.com/raw.php?i=dfRZcd4T

i'm using jscompress.com to minify it but it's error out any ideas?


2) 'Make fewer HTTP requests'

here's what it says:

QuoteThis page has 5 external Javascript scripts. Try combining them into one.
This page has 5 external stylesheets. Try combining them into one.

now there all hosted on the same domain but there linking to them like this:

http://domain.com/Themes/default/css/index.css?rc2

how do i change them to just be like this:

/Themes/default/css/index.css?rc2

the code it's using is like this but how do i change it?

<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?rc2" />


3) 'Configure entity tags (ETags)'

QuoteThere are 14 components with misconfigured ETags

and it lists 14 image url's but i have no idea what an ETag is?

CapadY

This has nothing to do with SMF while this is an SMF2 support board.

Ask your questions to the support department of "Y-slow" and "page-speed".
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

flapjack

Quote from: capady on July 18, 2010, 05:20:10 AM
Ask your questions to the support department of "Y-slow" and "page-speed".
???
do you have any info of where to find those "departments"? lol

OP:
2) you didn't understand the idea. by doing what you want to do it will still be at the same domain, what that means is to put those files on different *domains*, like:
http://domain.com/Themes/default/css/index.css?rc2
http://another_domain.com/Themes/default/css/index.css?rc2
http://third_domain.com/Themes/default/css/index.css?rc2

this way, the browser can load files simultaneously from different places and not queue them

you could also merge all .js files and .css files into one before doing it. and maybe this topic will be of help:
http://www.simplemachines.org/community/index.php?topic=389034.msg2688324#msg2688324

3) http://www.google.ie/search?q=configure+etags

Advertisement: