Comments (16)
Hi Zack, Thanks for sharing your amazing work. Hope this could be a quick fix. I have made offline.js work on my computer. The only issue (or maybe I've got the wrong end of the stick) that when I disconnect the Internet, the indicator shows that the internet connection is lost. But at the same time if I refresh the page the indicator goes back to green whereas I'm not connected to internet. At the same time if the indicator is red and I switch the wireless on, the indicator does not get any signal maybe and stays red until I refresh the page. Could you please help. Many Thanks in advance.
from offline.
Same issue here:
When my whole computer and of course the app is offline, then the Offline.status is "up".
Browser: 60.0.3112.101 (Official Build) (64-bit)
OfflineJS version: ^0.7.18
from offline.
Offline detects when your user doesn't have an internet connection, not when your server is down. Messenger can help.
from offline.
what about i deploy the server to internet? should it work again?
from offline.
Offline doesn't care if your server is up or not, only if the user has an internet connection. Wrapping your requests with messenger, as I suggested above, will allow you to easily show traditional error messages.
from offline.
I dont have internet and I try to execute Offline.state I get 'up' Also if I try Offline.check() it gives me some json output. How to find if the internet is down?
from offline.
What browser?
from offline.
I think I figured out the issue, I was doing offline mode in FF. And I was trying in my local site. I will move to web environment and try it. Will keep you posted. Thanks for the quick response.
from offline.
Hello,
I am using offline.js in my web application. When the connection goes down or offline, the pop up does come up but I cannot see the text. I have tried my best to find what I am missing. Am I missing some js or css files which need to be included.
from offline.
@vinay-kotian Please be sure you're including both a theme and a language file: https://github.com/HubSpot/offline/tree/master/themes
from offline.
I am using Offline.js to show a message when internet is not there, its working fine but in sometimes Firefox 44.0 version when internet is not there than it will show alert "Your device lost internet connection" and "Attempting to reconnect" and than without internet also it will come third alert message as "Your device is connected to the internet" and alert will disappear.
can anyone suggest me how to fix this issue is Firefox and some times this issue will come in chrome also.
from offline.
Does offline.js work in localhost or I need to move to web environment?
from offline.
Hello,
I am using offline.js in my web application. When I do offline in Google Chrom Network Tab -> Offline then it works fine, but it not able to work while I turn off my wifi.
Please help me
Thanks,
from offline.
@pratikhmehta perhaps my guesses this time are stupid, anyway those are the next:
- I think you are pointing to localhost, then does not matter if you turn off your wifi, the offline.js keeps "online" for localhost.
- I think you have the n/w cable still connected.
Maybe I'm absolutely wrong, I hope that.
Regards.
from offline.
Is there a way to check Internet connection if on localhost? Using offline.js
from offline.
Yep, just change the URL to something which is on the internet. See https://github.com/HubSpot/offline#checking.
from offline.
Related Issues (20)
- Offline.js not working with async HOT 4
- document.body is null
- Shows offline pop-up frequently due to request timeout
- Offline.options HOT 3
- [B] Countdown doesnt make sense, as soon as there is connection it connects HOT 1
- Does multiple ajax catch/send work or no? HOT 1
- Offline.js is not triggering the ajax on success functions after reconnecting HOT 2
- It is not working in firefox browser
- persian
- Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_0_offline_js__.on is not a function
- i added game: true, included snake.js but doesnt work - any ideas?
- Offline.js not working on safari HOT 1
- Offline not showing any popup if I disable WIFI, but it is working if I manually choose offline in chrome. HOT 10
- Offline.js Intercept WebSocket Requests HOT 1
- For those still wanting to use this HOT 4
- Is there a way I can use this repo in React app ? HOT 1
- My internet is offline chrome shows it proper, but offline.js not fires.
- Dissable console logging for requests
- Spanish translation
- [REQUEST] Indonesian translation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from offline.