View Full Version : ExtJs 4.2 - how to dynamically reload scripts

5 Sep 2018, 1:15 AM

In our project we are using ExtJs 4.2.
I wonder if there is an option (config) to check if scripts has changed and load fresh version from sever (something like live server, F5 is not solution)?
Or maybe there is another option to say to Loader to not keep information that some file/class is loaded ?

I did my own workaround but i do not feel it is correct way.
I modified Loader class and changed isClassFileLoaded and isFileLoaded to be always false.
I also change Ext.ClassManager.isCreated to return always false.
Now whenever script is required it is loaded from server first.

Do you see better options?


7 Sep 2018, 1:18 PM
I have sent your question over to a team member and we will get back with you very soon with an answer. Thank you for your patience with us.

11 Sep 2018, 5:53 AM
Hi there,

ExtJS 4.2 doesn't provide functionality to dynamically reload scripts. However, if you want to reload scripts you can add an script tag using plain javascript.

See link - https://stackoverflow.com/questions/9642205/how-to-force-a-script-reload-and-re-execute for reference.

However, if the purpose is fir development environment, you can use sencha app watch -


Sencha Support.