Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7175 in 4.1.2.
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    628
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default 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
    Browser versions tested against:
    • IE8
    • IE9
    DOCTYPE tested against:
    • Strict
    Description:
    • 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.
    Steps to reproduce the problem:
    • Run the code in IE.
    • Examine the Network requests.
    • Change "garbageCollect" to false then repeat previous steps.
    The result that was expected:
    • Performing GC should not lead to extra/invalid network requests.
    The result that occurs instead:
    • GC causes a script with a "null" src to be requested.
    Test Case:
    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
    Operating System:
    • Win7
    Screen Shot:
    IE9 Network monitoring...notice the URL requesting /null
    ie_null_url.jpg

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,219
    Vote Rating
    859
    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


    This has been fixed for 4.1.2
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1