I was reading this article on Ajaxian:
http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support
which discusses Dynamic Script Pattern or On-Demand Javascript. I think
this is a VERY cool feature. Does Jquery support something like this?
What are the pros and cons of
Hi,
which discusses Dynamic Script Pattern or On-Demand Javascript. I think
this is a VERY cool feature. Does Jquery support something like this?
I wouldn't put it into jQuery itsself, because then you would need to load
jQuery before you can use the dynamic Script loading. I have developed
Christof,
While I agree with your cons in theory, a couple of them can be discounted.
Christof Donat wrote:
- either you need to do synchronous loading like JSON does or you need to
work
with callbacks as I do. Synchronous loading blocks the browser, callbacks
are
not understood by
Christof,
Thanks for the clarification.
Dan
Christof Donat wrote:
Hi,
Christof Donat wrote:
- either you need to do synchronous loading like JSON does or you need
to
work
with callbacks as I do. Synchronous loading blocks the browser,
callbacks
are
not understood by everyone.
Christof,
Can you show how you modified the JQuery library to generate the
package-object? Code?
Rey...
Christof Donat wrote:
Hi,
So from the docs, this looks like its library agnostic correct (ie: not
dependent on JQuery)?
Yes, that is tue. I use it to load jQuery. You need to
Well, as I've put it down below, this isn't really an issue of code
purity (although I'm sure that bugs me too). What I was trying to say
was that it is an issue of readability. At least to me, seeing $ in my
javascript code indicates DOM manipulation. So my preference is to make
anything
this, without
touching DOM, FX or AJAX at all.
I therefore vote to integrate an On-Demand Javascript facility into jQuery.
-- Jörn
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss
Hi,
For example, Christof's scriptloader could use jQ's ajax code, or could
merge with it.
That is something that won't happen. I whanted it to be as small as possible.
I felt that the JSAN core had to many functions that are not necessary for
the basic functionalitiy of resolving