Kendo UI Application for mobile: service worker bypass remote view scripts loading

1 posts, 0 answers
  1. Vladimir
    Vladimir avatar
    1 posts
    Member since:
    Apr 2015

    Posted 31 Mar 2017 Link to this post


    While I testing Kendo UI Application for mobile, I discover some incompatibilities with Service Worker in Google Chrome. This concerns the situation when remote view has inline links to *.js: scripts are loaded and evaluate fine, but Service Worker can't respond for this requests - they all time loading from server, but not from SW cache.

    The reason is that Kendo UI Application load *.js files from remote views by synchronous XHR requests. But "Synchronous XMLHttpRequest outside of workers is in the process of being removed from the web platform as it has detrimental effects to the end user’s experience."

    More information to learn about:

    • Is it possible to change XHR method to asynchronous in that case?
    • Maybe Telerik will be able to change the loading mechanism for inline *.js files from remote views?

    I understand that this will require additional logic for the correct order of loading and evaluation of multiple files. But the use of service workers is becoming more urgent and the need for it will increase.


Back to Top