Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    2
    Vote Rating
    0
    luke.terry is on a distinguished road

      0  

    Default Ext.Loader getting negative pending files count in Firefox (doesn't fire onReady)

    Ext.Loader getting negative pending files count in Firefox (doesn't fire onReady)


    REQUIRED INFORMATIONExt version tested:
    • Ext 4.1.0
    Browser versions tested against:
    • FF13 (firebug 1.9.2 installed)
    DOCTYPE tested against:
    • ____
    Description:
    • In a complex application (around 100 js files) Ext.Loader may fail to raise the onReady event after all files have loaded.
    • FF seems to make duplicate requests for files, fetching a second time from the local FF cache :S
    Steps to reproduce the problem:
    • Create a large project with lots of dependencies.
    • Enable the Ext.Loader with disable cache to false.
    • Load the page a few times.
    The result that was expected:
    • The page loads perfectly every time.
    The result that occurs instead:
    • More often than not the page will remain blank and no application code will execute.
    HELPFUL INFORMATION

    Debugging already done:
    • Inspected the net inspector and can see two requests for some files. Added additional logging to Ext.Loader that shows it actually only requests once (it seems FF requests from the server and then again fetches from the local cache some time later). It seems that onFileLoaded is called multiple times because of this behaviour (checked this by adding logging in onFileLoaded).
    Possible fix:
    • modify Ext.Loader.onFileLoaded handler (line 1002) to check whether the class file is already loaded. If it is already loaded, return immediately instead of updating counts.
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • ________
    • Win7 Ultmate

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    15,065
    Vote Rating
    96
    evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold

      0  

    Default


    Can we get a test case for this? If you don't want to put your app up here you can email it to evan@sencha.com
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Jun 2012
    Posts
    2
    Vote Rating
    0
    luke.terry is on a distinguished road

      0  

    Default


    Hi Evan,

    Thanks for getting back to me, unfortunately we are restricted from sending our main project code to non-customers. I will put together a test project for you in the coming days.

    Luke

  4. #4
    Sencha User
    Join Date
    Dec 2012
    Posts
    3
    Vote Rating
    0
    sgr is on a distinguished road

      0  

    Default


    I exeprience this bug with FireFox 18.0.1 on Linux. Looks like Ext.Loader doesn't work properly in FF when you have a large project with complex folder structure.