-
5 Sep 2012 11:56 AM #1
Loader garbage collection causes IE to request script with null src.
Loader garbage collection causes IE to request script with null src.
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.1
- IE8
- IE9
- Strict
- When performing garbage collection of async-loaded scripts, the Loader assigns null to every property of the script tag. By doing so, Internet Explorer will attempt to reload the script when the "src" property is reassigned. This leads to an unnecessary server request and 404 response for a "/null" uri. See image at bottom.
- It also appears that IE will attempt to reload the script when other properties are assigned. I did not identify which properties those are though.
- Run the code in IE.
- Examine the Network requests.
- Change "garbageCollect" to false then repeat previous steps.
- Performing GC should not lead to extra/invalid network requests.
- GC causes a script with a "null" src to be requested.
Code:Ext.Loader.setConfig({ disableCaching: true, enabled: true, garbageCollect: true, paths: { 'Ext': '/extjs/ext/src' }, preserveScripts: false }); Ext.require('Ext.data.SortTypes'); //super small class with few dependencies
HELPFUL INFORMATION
Additional CSS used:- only default ext-all.css
- Win7
IE9 Network monitoring...notice the URL requesting /null
ie_null_url.jpg
-
19 Sep 2012 11:19 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
This has been fixed for 4.1.2
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-7175
in
4.1.2.


Reply With Quote