javascript - Change time allowed for server response in offline.js -


i using offline.js in mobile web project. in specific environment running in, script seems little over-zealous in reporting connection server lost. how go modifying allow server longer time respond?

try set check in offline.options required xhr:

offline.options = {     checks : {         xhr : {             url : function () {                 return "/favicon.ico?_=" + ((new date()).gettime());             },             timeout : 10000, // change timeout need             type : 'head'         }     } }; 

check source @ line 28 defaults. can see way set checks under checking header in documentation.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -