Skip to main content

Bug Tracker

Side navigation

#4527 closed enhancement (invalid)

Opened April 13, 2009 10:30AM UTC

Closed April 14, 2009 04:14PM UTC

Last modified March 15, 2012 02:38PM UTC

domManip - evalScript vs. globalEval

Reported by: kof13 Owned by:
Priority: critical Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc: john
Blocked by: Blocking:

It is not always good to use evalScrit to eval the script from src attribute in script tag, because evalScript is using ajax call to load the script.

Example: I am loading some html via ajax. This html is containing a script tag with src attribute. At this moment I don't want that browser make an ajax call once again to load this script. I whould prefer to load it at the way globalEval it do, because it seems to be better for performance.

It whould be good if I can setup it. If you bind evalScript as public function, I could manipulate/overwrite it with any other.

Attachments (0)
Change History (2)

Changed April 13, 2009 10:54AM UTC by kof13 comment:1

ups, sorry i have missunderstood the globalEval method. Please close the ticket.

evalScript is using $.ajax, but I think it should load the script via script tag, not via ajax call, I will look why is it fireing the ajax call instead

Changed April 14, 2009 04:14PM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed