Re: [jQuery] loading js files at the bottom of the page

2007-03-18 Thread Erik Beeson

Try it. Firebug makes it easy to see the order that things are loaded and
how long they take.

I will say keeping script tags in the head makes the body DOM cleaner, FWIW.

--Erik

On 3/18/07, Kush Murod <[EMAIL PROTECTED]> wrote:


Do you guys think

loading js files at the bottom of the page would make the page load
faster?

--
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-18 Thread Chris Domigan

Also scripts linked in the head can be cached.

- Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-18 Thread Kush Murod

Firebug is the BEST!!!
thanks guys

Erik Beeson wrote:
Try it. Firebug makes it easy to see the order that things are loaded 
and how long they take.


I will say keeping script tags in the head makes the body DOM cleaner, 
FWIW.


--Erik

On 3/18/07, *Kush Murod* <[EMAIL PROTECTED] 
> wrote:


Do you guys think

loading js files at the bottom of the page would make the page
load faster?

--
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED] 
[W] www.sensorynetworks.com 
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011


___
jQuery mailing list
discuss@jquery.com 
http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
  


--
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-19 Thread Klaus Hartl
Chris Domigan schrieb:
> Also scripts linked in the head can be cached.
> 
> - Chris

All *external* scripts can be cached, no matter if you include them in 
the head or elsewhere.


-- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Kush Murod

Hi Klaus,

When you say cached you mean browser caches them for you *OR* do you 
need to do something else yourself


Cheers,
Kush

Klaus Hartl wrote:

Chris Domigan schrieb:
  

Also scripts linked in the head can be cached.

- Chris



All *external* scripts can be cached, no matter if you include them in 
the head or elsewhere.



-- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
  
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Matt Stith

The browser will cache scripts and css included in the header, but not
anywhere else.

On 3/20/07, Kush Murod <[EMAIL PROTECTED]> wrote:


 Hi Klaus,

When you say cached you mean browser caches them for you *OR* do you need
to do something else yourself

Cheers,
Kush

Klaus Hartl wrote:

Chris Domigan schrieb:

 Also scripts linked in the head can be cached.

- Chris

 All *external* scripts can be cached, no matter if you include them in
the head or elsewhere.


-- Klaus


___
jQuery mailing list
[EMAIL PROTECTED]://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Aaron Heimlich

On 3/20/07, Matt Stith <[EMAIL PROTECTED]> wrote:


The browser will cache scripts and css included in the header, but not
anywhere else.



Really!? Where did you get that from?

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Klaus Hartl
Aaron Heimlich schrieb:
> 
> On 3/20/07, *Matt Stith* <[EMAIL PROTECTED] 
> > wrote:
> 
> The browser will cache scripts and css included in the header, but
> not anywhere else.
> 
> 
> Really!? Where did you get that from?

I'd like to know that as well. How would a browser distinguish where 
from the DOM an external file is loaded? Why should images be cached 
then, when they're included in the body only?

That may be true for external style sheets, but only because you can 
only include external style sheets in the head.



-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Ⓙⓐⓚⓔ
I always assumed the css was pre-fetched and cached because of the
http headers (that are derived from the )

Link: ; /="/"; rel="stylesheet"; type="text/css"

is generated by apache when a link is in the head. But I've never
served a page with a fake header to prove it.

On 3/20/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Aaron Heimlich schrieb:
> >
> > On 3/20/07, *Matt Stith* <[EMAIL PROTECTED]
> > > wrote:
> >
> > The browser will cache scripts and css included in the header, but
> > not anywhere else.
> >
> >
> > Really!? Where did you get that from?
>
> I'd like to know that as well. How would a browser distinguish where
> from the DOM an external file is loaded? Why should images be cached
> then, when they're included in the body only?
>
> That may be true for external style sheets, but only because you can
> only include external style sheets in the head.
>
>
>
> -- Klaus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-21 Thread Klaus Hartl
Kush Murod schrieb:
> Hi Klaus,
> 
> When you say cached you mean browser caches them for you *OR* do you 
> need to do something else yourself
> 
> Cheers,
> Kush

You don't have to do anything, this is up to the browser. Of course you 
have to be aware of the response headers that are set on the server. 
These may prevent caching.


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-21 Thread Klaus Hartl
Matt Stith schrieb:
> The browser will cache scripts and css included in the header, but not 
> anywhere else.

To verify that this is not true, simply include an external script file 
in the body and check the response headers for this file for example 
with the livehttpheaders[1] extension.

It reports: HTTP/1.x 304 Not Modified

That means the file is cached. In addition, if you check the Net tab 
with Firebug it will also say "xx KB from cache".

[1] http://livehttpheaders.mozdev.org/


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-26 Thread Matt Stith

Ehh, guess i shouldnt have sounded so confident with that. I acctually dont
know if thats true, it just seems like thats what a browser should do.

On 3/20/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:



On 3/20/07, Matt Stith <[EMAIL PROTECTED]> wrote:
>
> The browser will cache scripts and css included in the header, but not
> anywhere else.


Really!? Where did you get that from?

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/