273 posts
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
Kopyov says

Hi all.

Guys, i need an advice. I have 50 styles with 50 css files. I created a style switcher, but IE sees only these 31 file and ignores other 19. What kind of solution are you using for your themes?

Thanks

3430 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark Volunteer moderator says

Hi Kopyov,

If you have 50 styles that can be switched between, your site should only load one at a time. Don’t load the unnecessary style sheets.

If you are using 50 style sheets that are all required to be loaded on every page, you should be combining them. While IE’s limitations are annoying and file organization is good, 50 style sheets is excessive and will hurt the page load times by requiring 50 HTTP requests.

Most themes use one main style sheet, one style sheet for the “skin” (gets swapped out when options are changed), and possibly one or two others for JS plugins, etc. In general, combine as much as you can into one sheet and don’t load any sheets you don’t need at the time and you should be good to go.

Hope that helps,

Chris

17 posts
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
  • Located in Uzbekistan
impressdesign says

Hi all.

Guys, i need an advice. I have 50 styles with 50 css files. I created a style switcher, but IE sees only these 31 file and ignores other 19. What kind of solution are you using for your themes?

Thanks
You know Russian you can to me help?
17 posts
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
  • Located in Uzbekistan
impressdesign says

You know Russian you can to me help?

273 posts
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
Kopyov says

Chris, thank you very much!! I just realised that :) i was working during last 20 hours and when i finished, i just used 50 css files with direct switching inside of html file without replacing css files..

Thanks again!

3430 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark Volunteer moderator says

Chris, thank you very much!! I just realised that :) i was working during last 20 hours and when i finished, i just used 50 css files with direct switching inside of html file without replacing css files.. Thanks again!

You’re welcome! Glad it helped :)

by
by
by
by
by
by