0
<html manifest="example.appcache">

Can you add the manifest="example.appcache" part using javascript?

1

1 Answer 1

0

No you can't because the html file is already sent to the server so further changes to manifest attribute won't make the browser react to it. I tried it with :

document.documentElement.manifest = "site.manifest";

And loading the pages with and without internet, in the seconde case it says "connection error" obviously

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.