Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#4527 closed enhancement (invalid)

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:

Description

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.

Change History (2)

comment:1 Changed 11 years ago by kof13

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

comment:2 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.