LocalStorage cache for scripts