On Jan 16, 2006, at 2:30 PM, DeLynn Berry wrote:
Duane,
Don't know if this could have been what you are seeing, but the
"application" file (either .js or .css) will always come immediately
following the "default" set of js or css files. Right now I can't come
up with a good way to re-order that one file, but putting a css or js
file before the :defaults symbol in the method call should put those
files into the markup prior to the default files.
Let me know if you are still seeing weirdness.
No, I'm not actually talking about your patch specifically (sorry for
any confusion). I'm just curious about whether or not you'd solved
another problem I've been having--that of javascript dependencies,
i.e. when one javascript depends on another javascript having been
loaded first.
So far, the order of the <script src="..."></script> tags don't seem
to make any difference with regard to this issue. The javascripts
are all loaded asynchronously (from what I can tell) and then the
javascript in the calling code (i.e. the HTML file) is then executed.
I've seen one technique which uses ajax to remotely retrieve a
javascript file and then eval() it. I'm not sure if it's the best
method.
Anyway, how this impacts your patch and plugin, I'm not sure. I
think it merely means that sequence doesn't matter for the
javascript_include_tag method call.
Regards,
Duane Johnson
(canadaduane)
http://blog.inquirylabs.com/
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core