269 posts
  • Elite Author
  • Europe
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
+1 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

3418 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 100 and 499 items
  • Referred more than 2000 users
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 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
  • Exclusive Author
  • Has been a member for 3-4 years
  • 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
  • Exclusive Author
  • Has been a member for 3-4 years
  • Uzbekistan
impressdesign says

You know Russian you can to me help?

269 posts
  • Elite Author
  • Europe
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
+1 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!

3418 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • Bought between 100 and 499 items
  • Referred more than 2000 users
  • Has been a member for 4-5 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+4 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