locked
CRM 2013 - dynamic javascript size RRS feed

  • Question


  • Hi, I've noticed that when I access some form in CRM 2013 (i.e. existing account), there is a huge js file which is downloaded through /_common/JsProvider.ashx handler.

    I was wondering if this js file could be somehow cached client-side, without dynamic javascript generation 

    or something similar ??

    This size of 3MB is pretty large size, considering that this is done on almost every request, and

    it has an impact on responsiveness of GUI.

    In out CRM solution we use custom entities and forms, but case is the same as with default entities i.e. Accounts, Leads etc.

    Picture shows troubling sizes of generated scripts.

    Monday, September 15, 2014 1:51 PM

All replies

  • the browser will cache that file after it is loaded completely for the first time

    My blog: www.crmanswers.net - Rockstar 365 Profile

    Monday, September 15, 2014 2:11 PM
  • But if I select some other account from the list, the file will be downloaded again.

    If you watch the timings in IE dev.tools (Network tab , "Taken" column),

    you will see that request-response time is the same.

    I use IE 10, and option "always refresh from server" is turned off.

    Tuesday, September 16, 2014 6:19 AM
  • We have the same problem did you find a fix?
    Wednesday, December 3, 2014 12:04 PM
  • I was investigating this for some time, but then I stopped.

    I don't think we can do much here.

    First thing, url of jsprovider.ashx is different for every page in CRM (different IDs in query string).

    Second, the extension of resource downloaded is .ashx, and I doubt that browser can cache response downloaded.

    I found out that IDs mentioned map to js files located on CRM server.

    Every entity, page, etc. in CRM uses different set of JS files, so there is different url for jsprovider.ashx which is requested from a server.

    I don't know why there isn't more static approach to js files, I mean - why js files aren't downloaded once and cached locally in temp.internet files.

    Me and my colleagues feel that CRM seems to slow, even though we use on premises version.

    Maybe caching of js files woudn't help much speed-wise, but this 3MB (sometimes more) of JS downloading every time is strange.

    If someone thinks I'm missing some other things relevant here, please let me know.

    Wednesday, December 3, 2014 1:39 PM