Skip to main content

Bug Tracker

Side navigation

#7971 closed enhancement (duplicate)

Opened January 14, 2011 01:37PM UTC

Closed January 14, 2011 05:08PM UTC

Last modified January 14, 2011 05:08PM UTC

load() shouldn't add already referenced scripts

Reported by: Owned by:
Priority: undecided Milestone:
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Suppose the following scenario:

  • "document a" contains a reference to jquery, and a jquery plugin.
  • "document b" contains a reference to jquery only
  • "document a" loads "document b" via the load() method.

Now, the jquery instance of "document a" has been overwritten by the "document b"'s version, and the plugin loaded before on document a is not available anymore in the jquery object.

I'm not sure if this behavior is applicable to every javascript out there, but it could be nice if we could check if a reference already exists in the main document when adding the new javascript via the load() method.

Attachments (0)
Change History (2)

Changed January 14, 2011 05:08PM UTC by rwaldron comment:1

resolution: → duplicate
status: newclosed

Changed January 14, 2011 05:08PM UTC by rwaldron comment:2

Duplicate of #7757.