This is a migrated thread and some comments may be shown as answers.

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

0 Answers 54 Views
Miscellaneous
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 31 Mar 2017, 10:18 AM

Hi!

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." https://xhr.spec.whatwg.org/#sync-warning

More information to learn about: http://stackoverflow.com/questions/35879844/can-service-workers-respond-to-synchronous-xhr-requests

  • 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.

Thanx!

No answers yet. Maybe you can help?

Tags
Miscellaneous
Asked by
Vladimir
Top achievements
Rank 1
Share this question
or