May 9, 200917 yr I've been working on my site for a while, and today i decided to try and boost the yslow score before i 'launch' it It was hovering around 40, but now it's around the 85 mark, but this next bit is really bugging me I currently use the @import rule within my css, but yslow claims these stylesheets are outside of the <head> area, which is/isn't true (depending on how you look at it). What's the best way around this? I just want to get my yslow grade to 'A' it's no biggy, but i'm jw what options are available to circumvent this? I'd prefer not to compile all my css into a single stylesheet manually (can this be done automatically with php? if so what are it's limitations etc.?)
May 9, 200917 yr Author Ok, i've got it as best as i think i can for now, all my pages are about 87-90, although i'm still having beef with this <link rel="stylesheet" href="min/g=required&0.03" type="text/css" media="screen, projection" /> i'm no longer using @import in my css, but using php to compile all my css into a single minified file, yet it's still claiming that it's 'ouside the head' ? P.S the number &0.03 is version number, because i'm using a far future Expires header. Anyone shed any light on why it's doing this?
May 9, 200917 yr Author is that for wordpress? I've had a quick look at it, but i've got a working system in place so i've no real need to change it, i'm already minifying, cacheing and then using gzip as well. I've got everything configured fine, the only problem i'm having is that yslow is registering my css file as appearing outside of the head, similar to when you use @import within css. My css is in the head, and it's not even being generated on the fly, it's a cached copy, i'm just wondering why yslow is showing it as outside the head? I just want to push my score into 90 or 'A' grade, without changing my about:config to register my host as a cdn (pretty sure that's cheating ) Everything that script does, i've already set up, but i'ma bookmark it for now. The only points i'm failing on is the css in the head ( and the CDN (F). With a score between 86-91 (depending on pages, one page falls down on http requests, but i'll do an icon matrix which should solve that).
May 11, 200917 yr Author I'm pretty sure it's some sort of bug. i'm using & in my file and yslow claims it's not in the head, but if i change it to & prior to running yslow then it passes fine ? In my page head section i've written: <link media="screen, projection" type="text/css" href="min/g=required&0.06" rel="stylesheet" /> And it shows like below in firebug, if i run yslow it claims it's not in the head, and marks me down <link media="screen, projection" type="text/css" href="min/g=required&0.06" rel="stylesheet"> but then changing it back to the original (with '&' not '&' (shown below)) in firebug prior to running yslow, it gives me the additional marks and registers it as in the head? <link media="screen, projection" type="text/css" href="min/g=required&0.06" rel="stylesheet"> Does anyone know the number reference to & ?
Create an account or sign in to comment