[jQuery] Re: Javascript best practices

2007-09-13 Thread Christof Donat
Hi, > More & more plugins are using CSS to style the layout, this is good, > but their didn't aware of if user browser don't know javascript, it is > useless to load the CSS, e.g. thickbox > > script> >

[jQuery] Re: Javascript best practices

2007-09-13 Thread ricardojrm
It's work? On Sep 13, 7:55 am, Christof Donat <[EMAIL PROTECTED]> wrote: > Hi, > > > > > More & more plugins are using CSS to style the layout, this is good, > > but their didn't aware of if user browser don't know javascript, it is > > useless to load the CSS, e.g. thickbox > > > > sc

[jQuery] Re: Javascript best practices

2007-09-13 Thread Joan Piedra
I agree with Christof, and a good practice is to add a hasJS class to the body, so you can filter out the css rules for js-only elements. And bring out a better result without js. On 9/13/07, Christof Donat <[EMAIL PROTECTED]> wrote: > > > Hi, > > > More & more plugins are using CSS to style the

[jQuery] Re: Javascript best practices

2007-09-13 Thread Andy Matthews
That only loads the CSS file if the user DOESN'T have JS enabled. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ricardojrm Sent: Thursday, September 13, 2007 9:46 AM To: jQuery (English) Subject: [jQuery] Re: Javascript best prac

[jQuery] Re: Javascript best practices

2007-09-13 Thread howa
another reason i can think of: sometimes, you don't want to include jquery plugin in the , since maybe header.template is shared, then you put the include plugin codes into the templates only want to show the effect, this came to a problem...putting css into body failed the html validation. On 9