11
votes
5answers
2k views

Is it OK to use jQuery for responsive web design?

I have been tasked to update a site to make it responsive and appear correctly on smart phones. Unfortunately, the site in its current form isn't very easy to work with - I can't just change the CSS. ...
3
votes
3answers
958 views

How can you identify duplicate CSS rules?

I'm not talking about used/unused here. I have two stylesheets and some rules differ (either in selectors, rules or both) and some are exactly the same. So I'm looking for a way to extract and move ...
0
votes
2answers
415 views

Exactly what is Google's PageSpeed Service recommending and how to optimize CSS?

Looking at my webmaster tools, Google kindly recommended that I could further increase the performance of some of my sites and to look at the recommendations provided by their PageSpeed service. So I ...
1
vote
1answer
304 views

CSS Sprites: Are they worth the trouble?

I can't help but wonder whether CSS sprites are very much over-used. First of all, if I stick all my images in a single file it makes an aweful lot of empty space. I know, that shouldn't make an ...
8
votes
4answers
465 views

How to go about unused CSS issues

I am running some speedtests on a blog, and I always get complaints about unused CSS. But this is not CSS that I never use, it is just not used on that particular page. Now I work in a structured ...
1
vote
3answers
188 views

Adding text shadow to your whole website

I want to add shadow to all the text into a website. The text is in different elements of the website. Now I was thinking of 2 things. 1) add a class to all the containers with text, and just give ...
2
votes
2answers
534 views

Buttons in pure CSS3 or use image sprite

I want to know if it would be better to make an image for the buttons that I use, or can I get away with pure CSS. Ill give you the code. html: <ul id="buttons-dev"> <li ...
1
vote
1answer
1k views

CSS images loading extremely slow

I'm having difficulties with the following website : http://ladaily.com/los-angeles Seems like the rendering time of small images (less than 1KB) is extremely slow (over 2+ seconds). Any idea on ...
16
votes
4answers
7k views

How can I find unused/unapplied CSS rules in a stylesheet?

I've got a huge CSS file and an HTML file. I'd like to find out which rules are not used while displaying a HTML file. Are there tools for this? The CSS file has evolved over few years and from what ...
14
votes
7answers
2k views

What should I use to automatically combine css/js files?

I'm aware of sprockets for combining javascript files, but haven't tried it. What are some other options and how do they stack up?
11
votes
4answers
2k views

Should I combine js/css files into a single file?

Both YSlow and Google's Page Speed add-ons recommend combining script (and style) files into a single file each to reduce the number of HTTP requests, and I can certainly see the point of this when ...
8
votes
8answers
253 views

CSS reduction for faster loading / less bandwidth

Is compacting CSS / Removing unused rules for a specific page worthwhile in terms of bandwidth or can we rely on caching (headers/last-modified) to remove this overhead in the wild? Cheers Also, ...
8
votes
9answers
430 views

How do I compress my JavaScript and/or CSS?

I know that there are ways to dynamically load it into the page, but if I want to compress my code so it loads even faster, how do I do it?