Results 1 to 2 of 2

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

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    60
    Vote Rating
    7
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •