BleepingComputer.com: When to load alternate style sheets?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

When to load alternate style sheets? All at once every time, or just once at session start?

#1 User is offline   Ray Parrish 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 91
  • Joined: 30-October 08
  • Gender:Male
  • Location:Cottage Grove, Oregon

Posted 14 November 2008 - 07:58 PM

Hello,

I've successfully written a skinning script for my site so users can select the skin and text size they want to use. This skinning script uses many alternate style sheets, and I'm wondering if I should have links to all of them in my pages so they all load when users load a page?

I'm thinking that would speed up changing skins, and I'm wondering if just loading them all in one page will make them available for other pages as well, or will the other pages need to load them from the server when they want them?

I haven't loaded it up to the server yet, still have to put the function calls in the rest of my pages.

Later, Ray Parrish

#2 User is offline   Ray Parrish 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 91
  • Joined: 30-October 08
  • Gender:Male
  • Location:Cottage Grove, Oregon

Posted 25 November 2008 - 11:49 PM

Hello,

Well, no one ever answered this, but I have discovered through experimentation that all of the style sheets need to be referenced in every page that uses them the way I'm doing it with just client side scripting.

If I move to .asp server side scripting, I can write the one style sheet reference I want to use at any point to the page as it's being served to the client so only one style sheet reference will need to be loaded with each page.

Later, Ray Parrish

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users