Alex McManns Alex McManns - 5 months ago 47
JSON Question

Sometimes "Content Download" takes too long in Chrome and other major browsers

When I refresh my website (Ctrl+F5), loading of


(this is the script bundle that contains few js files, 2kb, 2kb, 70kb and the biggest one is the "kendo.all.min.js" that weighs 2mb)

takes too long one time in two. It took me 47 seconds to download this (see picture below).

What could be a problem?

Thank you in advance !!



What could be a problème?

that weighs 2mb

You can utilize localStorage or requestFileSystem to download files once, at each subsequent load of page retrieve files from storage or LocalFileSystem, see How to cache a downloaded javascript fle which is downloaded using script tag