You found a bug! We've classified it as EXTJS-8296 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    51
    Vote Rating
    7
    TonySteele is on a distinguished road

      0  

    Default javascript file loaded twice when using Ext.Loader.loadScript()

    javascript file loaded twice when using Ext.Loader.loadScript()


    I am using Ext.Loader.loadScript() to load scripts that may only be used occasionally in an application, However after it is loaded and EXT.create() is call on the class that has been loaded. the file is loaded again by create();

    from loadScript():
    Code:
    Request URL: http://localhost:55061/browser-app-2/apps/site/view/Site.js?_dc=1358898625584

    from create():
    Code:
    Request URL: http://localhost:55061/browser-app-2/apps/site/view/Site.js?_dc=1358898625608
    I would have thought that create would have Known that the file has allready been loaded?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,821
    Vote Rating
    836
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    It doesn't look like loadScript keeps track of what scripts have been loaded.

    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1