Re: Re: JS in the footer

Jason Barnes <[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
Not that simple, currently all the magic happens in onRequestEnd and is an 
aggregate of all the disparate requests to loadJS for that execution. So by 
the time you have your variable rest of execution has finished. Think you 
are missing the point of the tag and would be better off doing your own 
combine.

On Sunday, June 9, 2013 9:53:24 PM UTC+10, Jørgen Skogås wrote:
>
> This could be achieved by having a boolean variable in the loadJS tag that 
> adds them to request.inFooter. (This param should have information that the 
> developer need to manually add a <skin> or <core> tag to output the 
> script-tags. where they want.)
>
> If we rename jsInHead.cfm to jsLoad.cfm we could call it with a boolean 
> variable that does a <cfoutput> insted of <cfhtmlhead>. Or we could just 
> make a copy of the jsInHead.cfm and call it jsInFooter.cfm.
>
>
> kl. 14:06:57 UTC+2 onsdag 20. juni 2012 skrev Geoff Bowers følgende:
>>
>> On 20 June 2012 19:51, Phillip R <[email protected]> wrote: 
>> > Because javascript is a load blocker, best practice is to put the bulk 
>> of it 
>> > at the end of the page. I've always been a bit uncomfortable with all 
>> those 
>> > js files being loaded in the head so though I'd just ask the question. 
>> It 
>> > was really about managing scripts loaded from tags. 
>>
>> If you have a single loadjs then you will have a single, combined, 
>> compressed and cacheable JS file which is the best thing you can do to 
>> combat load blocking.  Sometimes this is not possible to get them all, 
>> but you can certainly make it respectable up there in the HEAD.  Do 
>> the same for loadcss and you can really improve front end performance 
>> ;) 
>>
>> -- geoff 
>> http://www.daemon.com.au/ 
>> skype. gb.daemon 
>> twitter. @modius 
>>
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
--- 
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to farcry-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/groups/opt_out.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.