Hybrid View
-
23 Jan 2013 1:03 PM #1
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():
I would have thought that create would have Known that the file has allready been loaded?Code:Request URL: http://localhost:55061/browser-app-2/apps/site/view/Site.js?_dc=1358898625608
-
23 Jan 2013 1:19 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
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.
You found a bug! We've classified it as
EXTJSIV-8296
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote