I don't really try to meet the W3.org standards.
99.99% of all electrical appliances on this planet meet either a
national standard/specification or an international
standard/specification. Same thing with electricity traveling across
borders, across countries. Wires implement industry or army standards.
98 per cent of the
visitors to my site use IE5.0+.
Maybe it's because they don't have any other choice. Netscape 7.x, Opera
7+, Firefox 1.x, Safari 1+ and Icab all have the ability to "disguise"
themselves as IE 6. They can change the user agent string which
identifies them as a browser and browser version when visiting a site.
I stopped trying to be compatible with
Netscape, Opera, and Firefox long ago. I used to spend about 30 per
cent of my time on compatibility issues,
Maybe, at that point, it would have been back then useful to visit a
newsgroup like this one to seek help, assistance. The good thing about
W3C web standards is that most of these are supported by Internet
Explorer 6.
DHTML and DOM objects are different issues and not covered by W3C web
standards but then there are more and more convergence and agreements
than divergences.
but now have the attitude that
if the other browsers can't meet MS standards, then too bad.
Your attitude makes your website less accessible, not more accessible to
other browsers, to other platforms, to other web-aware applications, to
other media, etc...
MS is
more of a standard setter than W3.org.
You would not say that if 90% of your visitors were among Safari,
Firefox, Netscape 7.x, Icab users.
Also, most users of my site
have high speed connections so I don't worry about large file sizes.
You have a complacent attitude here. Visitors having problems with your
site (IE-specific or too big or whatever) will not come back:
realistically speaking, what else would you expect them to do?
I
have one popular calculator that is 85k right in the web page and I
have not had one single complaint in six years.
If any of your visitor could read your posts in this thread, then they
would have a confirmation of how useless, pointless writing you a
complaint would have been.
Besides, js files are
too hard to edit!
With an "Homer Simpson" attitude, yes. With an "Lisa Simpson" attitude,
anyone can learn ... by seeking useful assistance in newsgroup such as
this one.
I suppose I am not in line with academia, but then
I taught myself what I know, and speak from experience. I use
JavaScript because of the ease of use, but more than that, for the
portability. Write it, upload it, and it is available. And as far as
compact code like you suggest, I don't worry about that either. Let
the machines hum and do all the work, they are made for it.
A webpage should never assume that the users visiting a site has endless
system resources (CPU, RAM, high-speed connection). There are lots of
web-aware devices and applications which have modest system resources.
Accessibility laws are more and more recognizing this fact.
So I am a sloppy programmer, but my site makes money. I would get an F
in your class, but I am not worried about grades any more either. Next
month I start drawing social security.
Users/Visitors of a site (not us) always have the final word and they
are the ones who can force a site to file a bankrupcy form. That has
been the case during the dot-boom era (1999-2001) on the web.
Gérard