Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [05-2006 Date Index] [Date Next] || [Thread Prev] [05-2006 Thread Index] [Thread Next]

[dokuwiki] Re: Why css.php?

  • From: Ben Coburn <btcoburn@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 10 May 2006 01:20:59 -0700

On May 10, 2006, at 12:18 AM, Joe Lapp wrote:

'Ello,

So why is all CSS now dynamically generated? Aren't we eliminating all opportunity for client-side caching (and network caching)? Doesn't this decrease server performance and scalability and increase the download burden on the growing mobile net market?

Running the CSS through PHP allows these issues to get addressed all at once.
- Preprocessing can be done on the CSS (currently color substitution)
- Comments and white-space get striped out to make the CSS smaller
- Dokuwiki caches the preprocesses CSS internally to avoid doing extra work
- The output CSS is network cacheable (recent patches in the development "tree")


Also, I'm curious about why I can't load and view the generated stylesheet, while the browser can when loading it as a stylesheet.

It is a browser glitch(?), probably something about line length. Use curl or some other command-line tool and you will see the compacted CSS.


Regards, Ben Coburn


------------------- silicodon.net -------------------

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.