Recent Changes - Search:

PmWiki

pmwiki.org

Why see if a CSS exists?

GNUZoo wrote:
> It does not need to know if the css exists. Just link to it, and if it
> does not exist it wont hurt anything (will it?).

It adds more load to the webserver, as it has to handle a lot of
"404 Not Found" requests, and the webserver error logs start
filling up with all of the 404 error responses. In fact, if no
pub/css/local.css, pub/css/Group.css, and pub/css/Group.PageName.css
file exists, then each page request will generate three extra 404
entries in the webserver logs.

At any rate, people will see that PmWiki is generating 404 errors
in the web logs and think "Gee, that's not a very robust
implementation."

Some people (especially people in the business of web design)
will have their browsers configured to report when 404 errors
occur in images and .css files, so it'll be less than ideal for them.

The page won't pass some validation tests (e.g., on w3.org)
that check to make sure the .css links are valid.

So, while some people might not care about any of this, there are
a lot of people who would consider these to be fatal shortcomings
of the PmWiki implementation and choose to go with something else
instead.

Pm



This page may have a more recent version on pmwiki.org: PmWiki:WhySeeIfCSSExists, and a talk page: PmWiki:WhySeeIfCSSExists-Talk?.

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:08 AM