I want to use third party js in my html5 cache manifest.
I don't know can I do it or not , if its possible then how?
Can I specify full third party js url in manifest file?
I have seen examples where in manifest they have specified http url for images , So why can't we do same for js & css?
If we can't implement it , is there any other option? I know that we can store third party js in local storage.
Example is appreciated.
Asked
Active
Viewed 1,823 times
4

Debugger
- 544
- 1
- 9
- 25
2 Answers
6
According to html5doctors, you can set external urls in the cache manifest. Here is an example:
CACHE MANIFEST
# This is the cache part where you specify files to cache
CACHE
/some/file.js
/some/other/file.css
http://some.external.url/file.js
I suggest you read the link to html5doctors if you want more information (cache, fallback, etc).

Florian Margaine
- 58,730
- 15
- 91
- 116
-
I have product which will run on other's site.I want to reduce loading time , also person can use it even he is offline. – Debugger May 29 '12 at 08:18
-
I have seen examples where in manifest they have specified http url for images , So why can't we do same for js & css? – Debugger May 29 '12 at 08:21
-
can you please tell me if I can use it while I am online? – Debugger May 30 '12 at 11:03
0
For anyone else experiencing problems, I had an issue with trying load scripts from https. Converting them to http did the trick.

Gideon Rosenthal
- 1,953
- 2
- 18
- 16