checknet: My jQuery plugin for detecting Internet connection

Update log
v1.6 (Feb 2013): Improved checking performance/bandwidth usage. Thanks Kematzy for your suggestion. Note: running the demo file of your desktop will continually display the connection warning, it needs to be on a webserver to work correctly.

v1.5 (Nov 2012): Fixed issue where checking was not resumed after the window/tab was moved back to the front after being minimised or behind another tab.

v1.4 (Oct 2012): Fixed issue where the config setting “checkInterval” was not being applied when specified manually by users. Note: this needs to be given in milliseconds.

v1.3 (Aug 2012): Changed main checknet function to accept an object of arguments, like $.fn.checknet(configObject), instead of a comma separated list, like $.fn.checknet(‘arg1′, ‘arg2′) – the latter won’t work any more. Inside the main function, this arguments object becomes part of the “checknet” global object, so you can now set checknet.config properties like checknet.config.checkInterval and checknet.config.warnMsg after calling the function initially inside your $(document).ready();. checknet.config.checkURL is still in there, in case for some wild reason you need to be able to attempt cross-domain requests, but I do not recommended that you customise this.

v1.2 (July 2012): Implemented “checknet” global object, for use in your own JavaScript/jQuery. eg: if(checknet.conIsActive){//do something if the connection is active}; Enter “checknet” in your js console to see what properties it has. All references to “checknet” are now lowercase, not as previously, where some references used camelCase (like this: “checkNet”).

v1.1 (July 2012): Detects inactivity at the user’s end (if browser supports the “page visibility API”), suspends checking when the user is inactive (to save bandwidth and prevent uneccesary http requests). Corrected errors where disconnection was not detected in some cases (after connection had been disabled and then re-enabled).

checknet is a plugin for the jQuery JavaScript library which, when used on a webpage, will detect if the internet connection is lost and add a warning to the top of the page. Amongst other uses, this could be useful for your site’s users if they have to enter any significant amounts of data before submitting a form (we’ve all had that annoying situation where you type something up and then lose it all when the form doesn’t submit properly!)

You can view the demo at
Load the page, then disable your internet connection (possibly by unplugging the network cable of your computer, or setting your device to “Airplane mode”). After a few seconds you will see a warning message appear at the top of the page, and the form’s submit button will be disabled. Re-activate your internet connection and you will see that the warning dissapears and the submit button is re-enabled.

To use the plugin on your page, first download the zip file from
Place the checknet.css and checknet-1.3.min.js file in the location you are using for those file types on your site. I use /css/ and /js/ but you may have your own preference. The index.html file is there for demo purposes only, and for you to look at the code of to see how to use the plugin on your HTML files.

Inside the <head></head> tags of your site’s HTML files, add these lines of code:

<link rel=”stylesheet” href=”css/checknet.css” media=”all” />
<script src=”js/checknet-1.3.min.js”></script>

If you put the checknet.css and checknet-1.3.min.js files in different locations than /css/ and /js/, you will need to change the references to where you put them. Also, if you already have a $(document).ready() listener on your page, you can put the $.fn.checknet(); line in there rather than adding another $(document).ready().

This all assumes that you already have jQuery included on your page. If you don’t, you can get instructions for using it from

Optional Parameters
After you call the $.fn.checknet() function, you have the option of then defining parameters in checknet’s configuration object which specify the interval between checking the connection (in  seconds) and the message which appears to warn users when connection is not present. If you do not specify anything, the default is to check the connection at an interval of 5 seconds and for the warning text to be “No Internet connection detected, disabled features will be re-enabled when a connection is detected.”. You can read about these settings under “How it works” below. To specify an interval of 10 seconds, you would call the function like this:

checknet.config.checkInterval = 1000;

To specify a check interval of 10 seconds, and set the warning message to “There is no connection!!”, you would call the function like this:

checknet.config.checkInterval = 1000;
checknet.config.warnMsg = “There is no connection!!”;

It’s also worth noting that the warning message has the id ‘netWarn’, and that disabled submit buttons have the temporary class ‘tempDisabled’ while there is no connection detected – you can target these with your own CSS if you wish to customise them further (like, say, giving disabled buttons a red border or something?)

How it works
The plugin works by doing an AJAX request to the current URL at set intervals to test the connection. If the page’s current URL is unavailable, the plugin assumes that Internet connectivity has been lost and adds the error message and disables inputs with type=”submit”. If the URL is available, it removes any error message and removes the disabled attribute from submit buttons. When looking into detecting internet connection with JavaScript, I discovered that many people have different opinions on the best way to do this effectively. JavaScript has the navigator.onLine property in more recent browsers, but I decided that testing the current URL was a better option and would allow for more flexability and give more consistent accurate results. The URL to test has been set by default to the current page href (because the user has already loaded it once, giving us a point of reference).

Permission to use
You can use the plugin for personal or commercial purposes as long as you give a link to or in your code/comments. I’d love to hear from anyone who’s using this, whether you have suggestions on how to improve it or just want to give some feedback – show me what you’re making!

  1. BrianDex says:

    The first satellite designed to continuously monitor the planet for methane leaks made a startling discovery last year: A little known gas-well accident at an Ohio fracking site was in fact one of the largest methane leaks ever recorded in the United States.

    The findings by a Dutch-American team of scientists, published Monday in the Proceedings of the National Academy of Sciences, mark a step forward in using space technology to detect leaks of methane, a potent greenhouse gas that contributes to global warming, from oil and gas sites worldwide.

    The scientists said the new findings reinforced the view that methane releases like these, which are difficult to predict, could be far more widespread than previously thought.

    “We’re entering a new era. With a single observation, a single overpass, we’re able to see plumes of methane coming from large emission sources,” said Ilse Aben, an expert in satellite remote sensing and one of the authors of the new research. “That’s something totally new that we were previously not able to do from space.”

    Scientists also said the new findings reinforced the view that methane emissions from oil installations are far more widespread than previously thought.

    The blowout, in February 2018 at a natural gas well run by an Exxon Mobil subsidiary in Belmont County, Ohio, released more methane than the entire oil and gas industries of many nations do in a year, the research team found. The Ohio episode triggered about 100 residents within a 1-mile radius to evacuate their homes while workers scrambled to plug the well.

    At the time, the Exxon subsidiary, XTO Energy, said it could not immediately determine how much gas had leaked. But the European Space Agency had just launched a satellite with a new monitoring instrument called Tropomi, designed to collect more accurate measurements of methane.

    “We said, ‘Can we see it? Let’s look,’ ” said Steven Hamburg, a New York-based scientist with the Environmental Defense Fund, which had been collaborating on the satellite project with researchers at the Netherlands Institute for Space Research in Utrecht, the Netherlands.

    Natural gas production has come under increased scrutiny because of the prevalence of leaks of methane — the colorless, odorless main component of natural gas — from the fuel’s supply chain.

    When burned for electricity, natural gas is cleaner than coal, producing about half the carbon dioxide that coal does. But if methane escapes into the atmosphere before being burned, it can warm the planet more than 80 times as much as the same amount of carbon dioxide over a 20-year period.

    The satellite’s measurements showed that, in Ohio in the 20 days it took for Exxon to plug the well, about 120 metric tons of methane an hour were released. That amounted to twice the rate of the largest known methane leak in the United States, from an oil and gas storage facility in Aliso Canyon, Calif., in 2015, though that event lasted longer and had higher emissions overall.

    The Ohio blowout released more methane than the reported emissions of the oil and gas industries of countries like Norway and France, the researchers estimated. Scientists said the measurements from the Ohio site could mean that other large leaks are going undetected.

    “When I started working on methane, now about a decade ago, the standard line was: ‘We’ve got it under control. We’re managing it,’ ” Hamburg said. “But in fact, they didn’t have the data. They didn’t have it under control, because they didn’t understand what was actually happening. And you can’t manage what you don’t measure.”

    An Exxon spokesman, Casey Norton, said that the company’s own scientists had scrutinized images and taken pressure readings from the well to arrive at a smaller estimate of the emissions from the blowout. Exxon is in touch with the satellite researchers, Norton said, and has “agreed to sit down and talk further to understand the discrepancy and see if there’s anything that we can learn.”

    “This was an anomaly,” he said. “This is not something that happens on any regular basis. And we do our very best to prevent this from ever happening.”

    An internal investigation found that high pressure had caused the well’s casing, or internal lining, to fail, Norton said. After working with Ohio regulators on safety improvements, he said, the well is now in service.

    Miranda Leppla, head of energy policy at the Ohio Environmental Council, said there had been complaints about health issues — throat irritation, dizziness, breathing problems — among residents closest to the well.

    “Methane emissions, unfortunately, aren’t a rare occurrence, but a constant threat that exacerbates climate change and can damage the health of Ohioans,” she said.

    Scientists said that a critical task was now to be more quickly able to sift through the tens of millions of data points the satellite collects each day to identify methane hot spots. Studies of oil fields in the United States have shown that a small number of sites with high emissions are responsible for the bulk of methane releases.

    So far, detecting and measuring methane leaks has involved expensive field studies using aircraft and infrared cameras that make the invisible gas visible. In a visual investigation published last week, The New York Times used airborne measurement equipment and advanced infrared cameras to expose six so-called super emitters in a West Texas oil field.

    In a separate paper published in October, researchers detailed the use of two satellites to detect and measure a longer-term leak of methane from a natural gas compressor station in Turkmenistan, in Central Asia. Researchers estimated emissions from the site to be roughly comparable to the overall release from the Aliso Canyon event.

    The leak has now stopped, satellite readings show, after the researchers raised the alarm through diplomatic channels.

    “That’s the strength of satellites. We can look almost everywhere in the world,” said Aben, a senior scientist at the Dutch space institute in Utrecht and an author on both papers.

    (booklet printing printing in China).

    There are limitations to hunting for methane leaks with satellite technology. Satellites cannot see beneath clouds. Scientists must also do complex calculations to account for the background methane that already exists in the earth’s atmosphere.

    Still, satellites will increasingly be able to both rapidly detect large releases and shed light on the rise in methane levels in the atmosphere, which has been particularly pronounced since 2007 for reasons that still aren’t fully understood. Fracking natural-gas production, which accelerated just as atmospheric methane levels jumped, has been studied as one possible cause.

    “Right now, you have one-off reports, but we have no estimate globally of how frequently these things happen,” Hamburg of the Environmental Defense Fund said. “Is this a once a year kind of event? Once a week? Once a day? Knowing that will make a big difference in trying to fully understand what the aggregate emissions are from oil and gas.”

  2. hayley says:

    Hello guys, my name is Hayley Amos!

    I`m an academic writer and I`m going to change your lifes onсe and for all
    Writing has been my passion for a long time and now I can`t imagine my life without it.
    Most of my works were sold throughout Canada, USA, Old England and even Australia. Also I`m working with services that help people to save their time.
    People ask me “Mr, Hayley, I need your professional help” and I always accept the request, `cause I know, that only I can save their time!

    Professional Academic Writer – Hayley Amos – toppaperwriters.comTeam

  3. Edwardo Toop says:

    Both before and after your massage therapy is to consume a lot of h2o, among the finest stuff that can be done . Drinking water will help to eliminate a number of the free-radicals that happen to be within your body, which is often causing your discomfort in the first place. This will optimize your entire encounter.

  4. after and prior to your massage therapy would be to consume a lot of water, one of the best issues you can do . Water can help you to eliminate several of the free radicals that are inside your body, which is often resulting in your discomfort to begin with. This will likely optimize your current experience.

  5. Judith Lomas says:


    I Will Provide 20.000 Backlinks From Blog Comments for,
    By scrapebox blast to post blog comments to more than 400k blogs from where you will receive at least 20 000 live links.

    – Use unlimited URLs
    – Use unlimited keywords (anchor text)
    – All languages supported
    – Link report included

    Boost your Google ranking, get more traffic and more sales!


  6. Aisha Chaffey says:

    Hello there

    I just checked out your website and wanted to find out if you need help for SEO Link Building ?

    If you aren’t using SEO Software then you will know the amount of work load involved in creating accounts, confirming emails and submitting your contents to thousands of websites.

    With THIS SOFTWARE the link submission process will be the easiest task and completely automated, you will be able to build unlimited number of links and increase traffic to your websites which will lead to a higher number of customers and much more sales for you.

    IF YOU ARE INTERESTED, We offer you 7 days free trial

    Best Seo Software

  7. Epiphonetna says:

    удалите,пожалуйста! .

  8. [...] Author Johnny VekicPosted on July 2, 2019Categories JavascriptTags answers, applications, developer, guide, help, howto, javascript, language, mobile, programming, Q/A, questions, tutorials [...]

  9. Squiergrr says:

    удалите,пожалуйста! .

  10. KitchenAideff says:

    ???????,??????????! .

  11. Blenderpel says:

    ???????,??????????! .

  12. Stanmorezxp says:

    ???????,??????????! .

  13. Visioniep says:

    ???????,??????????! .

  14. Candyrfk says:

    ???????,??????????! .

  15. Securitykou says:

    ???????,??????????! .

  16. eliotest says:

    My name is Eliot Estes. And I am a professional academic writer with many years of experience in writing.

    My interest is to solve problems related to writing. And I have been doing it for many years. I have been with several organizations as a volunteer and have assisted people in many ways.
    My love for writing has no end. It is like the air we breathe, something I cherish with all my being. I am a full-time writer who started at an early age.
    I’m happy that I`ve already sold several copies of my books in different countries like France and others too numerous to mention.
    I also work in a company that provides assistance to many people from different parts of the world. Students always come to me because I work no matter how complex their projects are. I help them to save money, because I feel happy when people come to me for writing help.

    Professional academic Writer – Eliot Estes – Hesperialovesbooks Team

  17. First of all I would like to say terrific blog! I had a quick question which I’d like
    to ask if you don’t mind. I was interested to
    know how you center yourself and clear your
    mind before writing. I’ve had difficulty clearing my
    mind in getting my thoughts out. I do enjoy writing however it
    just seems like the first 10 to 15 minutes are usually wasted simply just trying
    to figure out how to begin. Any suggestions or tips?
    Appreciate it!

  18. Hello friends, how is everything, and what you would
    like to say about this post, in my view its genuinely awesome in favor of me.

  19. Kayla says:

    When I originally commented I appear to have clicked on the -Notify me when new comments
    are added- checkbox and from now on every time a comment is added I recieve 4 emails
    with the exact same comment. There has to be a means you can remove me from that service?
    Thanks a lot!

  20. torchwood says:

    It’s awesome to go to see this site and reading the views of all mates regarding
    this paragraph, while I am also eager of getting familiarity.

  21. acne says:

    Eхcеllent items from you, man. I’ve have in mind your stuff pгevvious to aand
    you’re simply extгemely fantastic. I really like what you
    have got here, really ljke what you aare statiing and the way through ѡhich you ѕay it.
    You are making it enjoyable and you stiⅼl care
    for to stay it sensible. I can’t waiut to read farr more ffrom you.
    Tһis iѕ гeɑlly a terrific website.

  22. It is not my first time to visit this web site, i am browsing this web site dailly and get pleasant information from here every day.

  23. Hi there it’s me, I am also visiting this web page regularly, this web site is actually fastidious and the viewers are truly sharing pleasant thoughts.

  24. Currently it will certainly take a while to finish installation process.

  25. NMD Sneakers says:

    Owens stated the outcome of this research are not unexpected, nonetheless it was very good that the speculation regarding how alcoholic beverages performs in the mental faculties was established simply by scientific disciplines. Food is naltrexone. This substance holds to the identical receptors in the mental faculties that opioids would certainly bind for you to, and so the opioids put on get anywhere to travel. you need to do consume, the alcoholic beverages offers you a smaller prize, Mitchell explains. sense less very good when compared with you’d probably or else. number of medical doctors recommend naltrexone, partly because of the unwanted effects, Mitchell says. Headaches, queasiness, irritability along with achiness migh result from this treatment, which could generate men and women far from that, especially if they already within drawback and looking never to consume.
    NMD Sneakers

  26. NMD Sneakers says:

    Whether or not this could possibly be a wedding anniversary wedding ring, gemstone anklet bracelets or perhaps a gemstone necklace, just about any diamond jewelry can provide significance to a big day for you personally plus your family member. Since wonderful any clich as it may seem to be, expensive diamonds are a female’s companion. Because of the patterns available on the web and in merchants, obtaining distinctive patterns would take a lot from the bank account. Apart from the design of a diamond ring, you also have to be essential with regards to expertise of the gemstone. A shop could possibly have expensive patterns, however on the sacrifice associated with quality. Additionally, there are diverse coloured expensive diamonds, and several patterns could possibly be imbedded having a particular birth stone. There exists a wide variety to pick from. Aside from these 4 elements, you must be useful within purchasing in which jewelry, without damaging your wallet excessive.
    NMD Sneakers

  27. Nickel. It is great at supporting jewelry sustain their condition making it probably the most widely used chemicals to jewelry. It is the # 1 source of jewelry allergy. Nickel salt react with the particular sweat salt creating a hypersensitivity. In case you are sensitive to impeccable, look for copper or even zinc content with your sisalomon mener and gold jewelry. Harmless, you can use assessment kits available commercially to try content regarding impeccable with your jewelry.
    UA NMD Sneakers

  28. Ultra Boost says:

    Adorn using vitality. Equipment complement and impress any outfit combination. Covering it lets start work on diamond jewelry, ties, hair components, belts, mitts, hosiery and then any other highlight you can imagine to boost your thing.
    Ultra Boost

  29. korn adidas says:

    “Outside of an warrant, I’d rather not be tracked, it could be a government or possibly a shop,Inches according to him.”So I do believe there is a meaningful requirement to wreak havoc on these kind of detective tactics less than disobeying the law.Inches
    korn adidas

  30. Research for the real thing. Ensure you have awareness regarding the real Trainer footwear to avoid buying artificial and economical replica shoes. Traditional shoes are very an easy task to area once you know how you can look for the signs. These kinds of signs range from the following: the actual specific “C” design; consistent design and fashions; consistent and also highquality stitching. Symptoms how the custom carrier is actually artificial range from the following: cloth or perhaps man made buckskin materials instead of highquality, soft buckskin; a unique plastic material scent; lowquality freezer (the one that quickly snags); very poor tone associated with coloration; seen tough edges; and a few manufacturer defects and also scratches. A single tip would be to move 1st for an real, highpriced Trainer store no, to never purchase, however to be able to familiarize yourself with what sort of initial appears.
    UA INIKI Runner

  31. Put on a new tiny dress. Maybe the greatest a part of a new 60′s look has been the famous tiny dress. That quit little to be noticed, as it has been frequently quick along with limited. Discover a tiny dress or outfit that is situated regarding 810 ins above the leg. Preferably, an impressive or technicolor art print would help anyone produce this specific 60′s look. Anything vibrant along with made is good although. Full the style using a pair of nuts pantyhose. Fishnets or made tights will do the trick.
    New Balance 574 Shoes

  32. The idea been recently extended thought that alcohol consumption triggers the making invosalomon mening organic opioids within the mental faculties incentive stores, but researchers have reported precisely how this method functions merely within pets. New information within the diary Scientific disciplines Translational Remedies delivers observations into exactly why alcohol consumption is very addictivein human beings.
    new balance furon

  33. vans iso 1.5 says:

    Build Projects with regard to Grandbabies as well as GrandparentsCraft suggestions for grandpa and grandma as well as grandkids are a good way to destroy that get older buffer. Fortunately there are numerous of internet sites offering totally free designs as well as jobs for several kinds of crafts for you!How you can Acquire Freelance Writing ProjectsTips to be able to get big writing projectsFour Little ones Producing Projects Regarding SportsKids can on occasion view composing as being a task linked to university.
    vans iso 1.5

  34. Harajuku fashion may be the title regarding avenue fashion trends which leave the Harajuku Train station district throughout Tokyo, Okazaki, japan. The free form, creative fashion will be popular among teenagers as well as adults in your community. Because of its freeform mother nature, Harajuku fashion is difficult for you to determine. It might be deemed diverse, influenced by anime or perhaps manga character variations as well as overthetop love. Abide by these steps to be seen throughout Harajuku fashion.
    salomon clearance

  35. Get a components. You will need a observe deal with. You need to use one particular from any aged observe, so long as will still be functioning. Merely cut off or even independent the previous band or even group from the observe deal with. In addition to the designer watches, get an range of ovoids. You need to have Thirty four distinctly large ovoids, calibrating about 810 millimeters. and at least 62 pieces of smaller sized ovoids. To get a more synchronised look, you need to pick ovoids inside the identical colour structure that might complement the watch deal with. And then get yourself a couple of scissers as well as a duration of elastic jewelry twine.
    converse wedges

  36. This means should you an alcohol addiction as well as knowingly desire to stop consuming, it problematical to prevent due to the fact a part of your mind has learned which consuming is vital as well as obliges one to keep on.
    under armour gunpowder jacket

  37. salomon says:

    Jewellery often wraps up the outfit. Developing a lovely little bit of necklaces as well as having the pleasure being skilled together with one particular, will certainly bring delight to your woman. Really bad you’ll find sad those who experience itchiness, redness, rashes, blistering and in many cases hemorrhaging along with puss manufacturing of the skin contact places. This problem is known as hypersensitive contact dermatitis a situation exactly where epidermis acts to particular allergens that it is made in connection with. Figures show that one inch seven men and women have problems with necklaces allergies. If you are one of these, see the approaches to finding necklaces pertaining to sensitive epidermis.

  38. Decide the length of your necklace. Before you proceed, you should very first decide how lengthy the necklace will probably be. This is so that you will be aware the number of bounce jewelry you will have to full the necklace. You may use a necklaces determine with this, or you don’t possess one, the tape-measure will do equally as good.
    scarpe da tennis Solomon

  39. Business Essential. This is the wholesaler’s internet site using gemstone test candidates of different styles through varied nations. Its no surprise that it can be filled with all the gemstone equipment you may need given it features countless dealers that means great choices.
    womens salomon walking shoes

  40. Purchase hop bands. Jump bands are available through ovoids and jewelry offer shops. You can purchase any group of sisalomon mener precious metal hop bands for under $10. The particular hop ring dimension is a private preference, even though it is going to be best to pick greater hop bands, particularly the ones that evaluate 8 or even Twesalomon mene mm. Don’t forget to additionally purchase fasten hold. You can pick just about any hold as long as it’ll complement the design of your hop ring necklace.
    Under Armour Curry 2.5

  41. Usa all nearly all claims offer an salomon men retailer. In Chicago you could go to the salomon men inside Beverly Heart. The particular deal with: 8500 Beverly Bsalomon mend. Collection 774 Chicago California 90048. In case you are inside New York check out their particular retailer inside Saks Sixth Opportunity. The particular deal with: 611 Sixth Opportunity New York New york 10022. So if you’re inside California why not check out their particular go shopping inside Palm Seaside. The particular deal with: One humdred and fifty Well worth Opportunity Collection 107 Palm Seaside FL 33480.
    under armour stock split

  42. Defіnitely, wat a great blog and instructive posts,
    I surely will booҝmark үour webѕite.Have an awsome day!

  43. Janette says:

    Greetings, Could I grab your own photograph and make use of it on my own website page?

  44. Getting a designer ladies shoes is probably part of every single ladies fantasy. Often it is not which cheap, so you will have to wait for a sale to get hold of your own designer ladies shoes. Be it a new hay ladies shoes, trend tote, as well as leader ladies shoes that could work as cases of your very own things, there is a shoes for you.
    scarpe Salomon acquistare on-line

  45. Europe you can visit Europe One particular in 7500 Lundy’s Side of the road Room B3 and also Before Niagara Is catagorized Ontario.
    under armour swim trunks

  46. Remarkable things here. I am very glad to peer your post.
    Thank you a lot and I am having a look ahead to touch you.
    Will you kindly drop me a e-mail?

  47. nastyxxx says:

    Roberta bony down cease to jerk, If you can aloof hear me jerk, if she is getting what I assume she’s getting, I mediate the total stomach of yours might squirt.He was groaning noisily with sheer pleasure but the sound of the surf hooded all.Hmm, I don’t prefer Dawn having a pimple on her booty.As I advance in the apartment and the door closes tedious me, there you stand in cock-squeezing bluejeans and a tee t-shirt that flash your muscled forearms and gams.The cab came to a terminate before the burly building and Beyonce rather tentatively exited from the relieve seat.One day tho I will be able to initiate my retain company.She exhales deeply, but she is prepared.After some time, the blue sundress’ gf excused herself to proceed aid to her office work and the blue sundress zigzag befriend in her tabouret, face uplifted to the sun, eyes closed, a half grin on her lips.)I slammed one finger into my poon, and I shivered all over as I came.At the tenth full, Harry could rob no more.It was supah hot, so I eliminated my footwear as well as my socks.Jamal cranked up the CD player and we were serenaded by the feeble college opening strains of The Stripper.Then the driver came to my rescue.It was coated in their mixed splooge, and it was only going in half device! ruin, the observe of that hefty jism-pump inwards her sent her over the brink, and she embarked jizzing indulge in she had never spunk before.She always luved this study and would hiss him, every time, to reaction the same, groaning, expect Who attain you belong to, sub?Вќ.A duo of times, yeah, no astronomical deal.I’ve never seen a masculine enact that.Now I knew that auntie’s sleep was highly taut and I had to sleep for the days until uncle returned.create you told cucky that he’ll be driving you over to my plight from time to time for me to screw you?Listen up peepee.Naya smooched my neck and blown on my gspot. sophie dee shemaledarering game 12chathurika peris sexkelly hu nudekatrina bangbusninel conde desnudomax faktor cameronmain pukiaustin st john pornlinda lovelace animal sexshy love latin adulteryxhamster slutlund bhosemadison pettis nakedbbw solowheelbarrow fuckingchiquillas follandonadine’s milk barxxx king of the hillorgasms xxxeskimo pornsakura sakurada dog gameporno de ninas gratistekken asuka hentaiforced to cum porn
    The thwack, thwack, thwack, of her stiffness on his flesh echoed in the constant.As the sound of the carriage traditional into the distance a smirk embarked to retract larger on Jared’s face.I shoved the faux penis scrotum deep inwards me and a lil’ more for mammoth measure.I arched over and took the other nip in my gullet, while my mitt slipped down her hip in the direction of her tastey area, and remarkably perceived Blue sundress’ forearm in the same shuffle.She’s a smoking five’7 with a stiff, unmanly bod, sexy flesh, fantastic caboose, and a cute size C that looks first-rate on her.That’s what I mediate about masculines be joyful you peepee.She desires to peruse my slave’s massive pecker.She asked if we would choose her up there and we headed for the elevator.Yes, she is my superslut but you are her marionette so that puts you a lengthy scheme down the food chain cheating.You expose her that the 2 of you need to interchange places.Jenny had lost count of the number of times she had fantasised about predominant her junior enemy, but she had always believed the normally spruce sever Beyonce harm not be into the lifestyle and had glad herself with dream.My tit compose grown innate and supah-cute now.Kath had observed me carry out this, beginning to laugh, before saying him, Well you banger cramped stiff-on idiot, you evidently luved that as powerful as I did!distinct looks savor it.The indicate of the camera brings you encourage to the moment.shag splat!! A forehand and backhand, both supah firm, both supah agonizing.They are always buying me lunch and sending free samples and tickets and objective about anything to gather the sell.Before I could retort he’d moved around me and onto the sofa, inbetween Jen’s gams.After all he was her hubby, he was the boy around here.! screaming and whimpering in elation.I dawdle over, glob to my knees and undo your trousers.

  48. Excellent beat ! I would like to apprentice at the same time as
    you amend your website, how can i subscribe for a weblog website?
    The account helped me a appropriate deal. I were tiny
    bit familiar of this your broadcast provided vibrant transparent concept

  49. EverytҺing is very open with ɑ really cleaг description of the issues.
    It wаs гeally informative. Yօur site is useful. Thanks for shaгing!

  50. sex says:

    Τhiѕ article will assist the internet visitors foг buіlding up new weblog or even a weblog frоm start to end.

  51. I feel tɦat is among tҺе so much important information fог me.
    And i’m glad studying yοur article. But should obѕervation on few basic
    issues, The website tаste is grеɑt, the ɑrticles
    is really nice : D. Good process, cheers

  52. Determine the main in the issue. How come you have smelly athletic shoes, in the first place? Possibly the feet would be the issue. In that case, you have to remedy that problem. Rinse the feet carefully employing specific cleaning soap for your foot. Implement foot product also to keep it smelling fresh new. Base natural powder might additionally help in retaining your feet smelling fresh new.
    Under Armour Curry 1

  53. Thanks for sharing your thoughts about ethnic necklaces.

  54. Can І just say what a relief to uncover a person that really knows
    what they’re discussing oѵer thᥱ internet.
    Yoᥙ definitely knoᴡ how to bring a problem
    to light and make it important. A lot more peopⅼe must read thiѕ
    ɑnd understand this sidе of tҺe story. I can’t beⅼievе you’гe not more popular bеcause you certainly have the gіft.

  55. Harajuku design will be the title of block outfits which emerge from the Harajuku Station district throughout Tokyo, japan, Asia. The free kind, imaginative design can be popular among adolescents as well as adults in your community. Because freeform dynamics, Harajuku design is difficult to be able to define. It might be considered modern, depending cartoons as well as manga personality designs as well as overthetop relationship. Follow these steps to decorate throughout Harajuku design.
    womens salomon shoes

  56. Individuals buying haversack should check for the particular CE indicate, that is obligatory on merchandise accepted for sale from the European, as well as the English Normal amount 1836:2006.
    salomon x scream

  57. xxx hd says:

    Hi, after reading thіs amazing post i am as well delіghted
    to share my experiencе here witһ friends.

  58. WOW just whɑt I was searching fоr. Camе herе bү
    searching for สาวไทย

  59. Mine did too! He was like a Ran to you when you called him, played fetch with hair ties and loved belly Got really into it and would stretch and wiggle side to side to scratch his back Also he’d let us spin him around on the wood floor and hurl him down the hallway like a curling He always came back for more

  60. free movies says:

    Article writing is аlso a fun, if you be familiar ԝith after that
    yoᥙ can write if not іt is difficսlt to write.

  61. Good info. Ꮮucky me I discovеred your site by chance (stumbleupon).

    I have book marked it for later!

  62. porn tube says:

    Greate pieϲes. Keep writing suсh kind of information on your page.
    ӏm really impressed by it.
    Heⅼlo therе, Уou have done an excellent job.
    I will certainly dіgg it and for my part sugցest to my friends.
    I am confident tҺey’ll be benefited from this web site.

  63. Hi! I could havе sworn I’ve visited thiѕ website before but
    after looking аt many of the posts I realizеd it’s new to me.
    Αnyways, I’m certainly pleɑsed Ⅰ found it and I’ll be
    bookmarҝing it and checking back freqսеntly!

  64. Ӏt’s a pity you don’t have a ɗonate button! I’ɗ most сertainly
    donate to this fantastic blog! I guess for now i’ll settle for book-marking and adding yoᥙr RSS feed to my Google account.
    I lоok forward to new updates and will talk about this websіte with my Faceboοk group.
    Talk soon!

  65. Үou need to be a pɑrt of a contest for one of the greatest sites on the internet.
    I will highlу recommend this website!

  66. Asking quеstions are genuinely good tɦing if
    you are not understanding something fulⅼy,
    however tҺis paragraph offeгs nice understanding yet.

  67. xxx hd says:

    Qսality content is the key to attract the visitors to go to see the
    website, that’s what this web site is providing.

  68. Arleen says:

    I աas curiou if ʏou еveг cօnsidered changig the page layout οf
    your site? Its very well written; І loove what youve got to ѕay.
    But mayhe you сould ɑ littⅼe more in tһe ѡay of content sⲟ people coud connect ᴡith it better.
    Yoouve got an awful lot оf texxt forr օnly ɦaving 1 оr 2 images.
    Maʏbe you ϲould space іt outt betteг?

    Feel free to urf tⲟ mу page … casino online (Arleen)

  69. This ensures there is a sufficient amount of time for them to complete the installation. After all you
    won’t be able to open the windows and listen for
    traffic noise or see the condition of the unit before you lease.
    If there are obvious problems upfront and the
    owner’s maintenance response leaves you feeling uneasy, then move on.

  70. Work out what had gone wrong, and start acting to correct
    that one thing which went wrong. Cooking games have previously been the preferred pastime of adolescent females for decades.
    Similar denials are now being uttered with respect to Russia’s Hamas-like activities
    in Ukraine, while the deaths of Russian girls
    ( soldiers are being willfully concealed.

  71. There’s a lot of skills and personal qualities required by driving instructors that the TV adverts and the sales patter don’t bother to go into and which,
    for many people, seems to come as a surprise – often a nasty

  72. There is a new education secretary after the Senate
    confirmed acting Secretary of Education John B.

    Additionally, in a few colleges, holders of a more level degree (Bachelor’s degree) may be honored privileged higher degrees (Master’s)
    without study. Many energetic and motivated people,
    who enjoy working with children and take satisfaction in seeing them meet educational
    goals, are drawn to jobs in special education.

  73. Type your name in three times, and you will
    get three different pirate names- and three pirate
    ship names. However, you can counter these adverse effects
    via drinking a glass king of thieves hack gems water every now and then. However, there is
    one more class that hasn’t been mentioned.

  74. һellօ there and thank үоu fоr оur іnformation –
    Ι ɦave cerainly picked uρ аnything neѡ from гight Һere.

    ӏ Ԁіɗ ɦowever expertise some techhnical issuues
    ᥙsing thіѕ site, since Ι experienced too relod
    tɦе sote lots oof times ⲣrevious tо Ӏ ϲould ցеt it too load correctly.

    Ι hadd bеᥱn wondering if уοur wweb hostijg іѕ
    ΟK? Νot tһɑt ӏ’m complaining, butt sluggish loading instances times ѡill
    оften affect yor placemennt іn google and сould damage yοur
    ɦigh-quality score iif ads and marketinjg wwith Adwords.
    Weell I am adding tɦіѕ
    RSS tto mmy e-mail ɑnd cɑn lоok out fоr а
    lott mode ⲟf yߋur respective fascinating
    ϲontent. Make ѕure уοu update tһiѕ аgain ѕoon.

    Ayo baca-baca dii website Ane hanya unntuk mendapat Fakta lewbih
    keren mengenai penjahit blazer Pria harga Termurah .

    Ƭhanks үa

  75. blazer pria says:

    I’m amazed, I Һave tߋ admit.
    Ɍarely ddo I encounter a blog tҺаt’ѕ equally educative and іnteresting, ɑnd ᴡithout а doubt, үоu’vе hit tɦᥱ nail оn tҺе head.
    Τһᥱ issue іs аn issue tɦɑt not enough flks aree speaking intelligently ɑbout.
    Ⅰ’m νery happy I stumbled ɑcross thіs ɗuring mү swarch
    fⲟr somnething relating tߋ tһіs.

    Ayoo baca-baca ⅾі web Kami emi dapat Info lebih lenggkap tentang blazer pria .

  76. WOW јust what I wwas looking for. Caame Һere Ьy searching fⲟr resep masakan ayam mudah

    Silahkan Cekk blog Saaya hanya untuk mendapatkan Info lebih lengkap lagi mengenai .

  77. I Һave bedn exploring fⲟr a bit foor anyy higth quality articles or bloog posts on thiѕ sort
    օf area . Exploring in Yahooo Ӏ ulimately stumbled սpon this web site.
    Studying tһis infߋrmation So i aam hаppy too exoress tһat
    Ӏ have an incredibhly excellent uncanny feeling I сame uρon exactly wɦаt I needed.
    I sucɦ a loot witbout a doubt wilkl makᥱ certain too
    doo not fail to remember this web site ɑnd givee
    it a glance regularly.

    Feel free tto surf tо mmy web pɑge Agen Casino (

  78. Hello to every , since I am really eager of reading this weblog’s post to be updated on a regular basis.
    It includes nice information.

  79. It’svery simple to find outt any matter on nnet as cokpared to textbooks, aas Ⅰ found tҺis paragraph at this web site.

    Kunuungi site Kami buat dapatkan Data lebhih lengkap lagi tentang produsen sabuk bonceng anak .

  80. The materials with two cups of fresh fruits to salad can serve about 4
    people. Stress would cause the blood to become acidic, and
    the acidic blood is more likely to deposit calcium in the heart
    valves and would not reduce the cholesterol level. 45 grams to how many cups is 500 grams of rice

  81. Making Straightforward Vintage Head of hair Bows

  82. [...] if Internet Connection Exists with Javascript?Jquery Plugin for Detecting Internet Connection [...]

  83. Holger says:

    Hallo Tom,

    I have used your plugin with jQuery. With jQuery mobile I do not see the message on the screen. Do you not why?


  84. Manivannan J says:

    Thanks for provide useful plugin. I am facing issue that current url hit again via ajax call.
    My code example:
    checknet.config.checkInterval = 1000;
    checknet.config.warnMsg = “There is no connection!!”;
    checknet.config.checkURL = “is_live”; // returns 200

    When I hit “” page, on document ready your script sends ajax request to current url and then to my specified url(checkURL).
    The “…sales/new” page contains complex queries and calculations, hence its very cost to re-hit current url again via ajax.
    Its working perfectly in the case; after specified interval, hits only the checkURL.

    I want to hit only the specified url(checkURL) during document ready and specified interval.


  85. Alisa says:

    Very informative post, i’m regular reader of your blog.

    I noticed that your website is outranked by many other blogs in google’s search results.

    You deserve to be in top10. I know what can help you, search in google for:

    Omond’s tips outsource the work

  86. Shubham Jd says:

    Awesome Piece Of Work..! Thanks

  87. Kurtjeke says:

    Love your plugin. It works fine for me.

    One thing I’d like to share which hopefully saves someone hours of searching (like I did :) ) is when you use html5 appcache, make sure you don’t cache the file you want to query (checknet.config.checkURL) and to include NETWORK: * in the manifest.

    Keep up the good work!

  88. Andres says:

    Hello blogger, i found this post on 25 spot in google’s search results.
    I’m sure that your low rankings are caused by high bounce rate.
    This is very important ranking factor. One of the biggest reason for high bounce rate
    is due to visitors hitting the back button. The
    higher your bounce rate the further down the search results your posts and pages will end up, so having reasonably low
    bounce rate is important for improving your rankings naturally.
    There is very useful wp plugin which can help you. Just search in google for:
    Seyiny’s Bounce Plugin

  89. Mass Kent says:

    Awesome code man. Hats off for your efforts! BTW dude, Am running a tomcat server based application, (though I know and trust that your plugin will definitely work) l’d like to check if your plugin would work offline. Is there a way to check your plugin without me using a tomcat server based application?

    • Ary says:

      My wife and I have been very blessed in our lives. We have also lived thogruh very tight times ( I. E., blood donations.) We have always felt the love if others. Many times, we picked up the bill for another at a resturant. Other times we paid for another’s groceries. Another time we put together a baby shower for a lady we never met who left an abusive home. Instead of money, we gave a man in the rain a sleeping bag, a coat, and accessories along with a gift card for a meal at Denny’s. When my wife ad I ran into financial issues, we were blessed by people who remained anonymous with a $500 gift card twice. We always asked why. We had a very hard time accepting. Why us? LovePay it forward It will come back when needed

  90. Kelsey says:

    You must spent a lot of time writing content on your page, you can save a lot of work, just search in gogle:

    treoughan’s rewriter

  91. shubham says:

    i have tried your code .
    it is great but iam facing problem.
    when connection is availaible it gives the message that it is not availaible.
    please help me.

    • 16a11c3515fWe admire what you have done right here. I like your enmeelt in which you state you are carrying out this kind of to give back on the other hand would certainly presume through each of the responses which is working for you as well. Have you got anymore info on this kind of? 18b

  92. Edmundo says:

    Being an integral source of energy used to adequately provide heat and
    cold spots in certain cases, only to get a professional
    manner. This landscaping contractor that fits your needs, and coordinates the analysis, both indoors and sitting
    in the community to join the Badgers moved in about
    three years for contractor mortgages. They take pride provide in serving the Dallas/Ft.
    By: Eugene Makeev Availing of their residence from the
    HOA, sometimes when you can ask the contractor to inflate
    its billings.

    my website; web page, Edmundo,

  93. The colors must be created to verify this before the perfect answer is simply to hire your web designer how much SEO we done for web development.
    Not only do lots of technical and creative skills. After getting a lot of time to carry out.
    Too web design long, hard coded solutions.
    Despite the fact that you do not match up the best web design.

    Feel free to visit my web site internet optimization

  94. Gabriel says:

    my web-site :: website [Gabriel]

  95. hello, your web site is really good. We do appreciate your give excellent results

  96. Regan says:

    Look into my web page :: homepage (Regan)

  97. Great information. Lucky me I came across your
    blog by accident (stumbleupon). I’ve book marked it for later!

  98. Bhuvana says:


    Great post and it was much helpful!

    A small correction!.
    For setting 10 seconds you mentioned
    checknet.config.checkInterval = 1000;
    which is not the case.

    to set 10 sec interval
    checknet.config.checkInterval = 10000;

    Please update it. If possible!

  99. Johne807 says:

    Hi, Neat post. There’s a problem with your website in internet explorer, would test this IE still is the market leader and a good portion of people will miss your great writing due to this problem. ddkagadceebb

  100. nosize says:

    Hello Tom,
    does olnine in your case mean the client must have internet connection or online could also mean must have access to an internal network for instance which may not necessarily have internet.

    I’m asking because i need to implement your solution such that online could mean both cases, so that users on the network but without internet connection are online and can access the application. Also please send me the un-minified version too please :)

  101. Tony says:


    Would it be possible to get a copy of the non-minified version of the code? I’m keen to use the portion of the code that detects connectivity but want to handle the event handling in my own way.


    • Milka says:

      National Memory Screening DayFree, confidential mermoy screenings for anyone concerned about mermoy loss and early Alzheimer’s disease detection and intervention, sponsored by Visiting Angels in cooperation with the Alzheimer’s Foundation of America.WHEN:Tuesday November 13 2012Noon 4pmWHERE:Avalon Missionary Church. 1212 Lower Huntington Rd. Fort Wayne IN 46819INFO:National Memory Screening Day is an annual initiative of the Alzheimer’s Foundation of America (AFA). Visiting Angels is proud to be a partner in this important first step in finding out if someone has a mermoy problem, and in helping patients and families become aware of the resources and assistance that is available.While a mermoy screening is not a substitute for a consultation with a physician, it can help to determine whether additional testing is warranted. With as many as 5.1 million Americans living with Alzheimer’s disease, and many more with mild cognitive impairment and dementia, early detection and intervention can be critical to making informed decisions for greater health and quality of life.For more information on mermoy screening and resources to assist with ageing in place, cognitive impairment, mild dementia, or Alzheimer’s disease, contact Visiting Angels at 260-482-CARE (2273).

    • Anne says:

      Dude, right on there brrhoet.

  102. charan says:

    plz forward the code regarding find bandwidth by java script.

  103. balaji says:

    Thanks regard’s balaji

  104. Eleanor says:

    I have read some just right stuff here. Certainly value bookmarking for revisiting.
    I surprise how a lot attempt you set to make this sort of
    magnificent informative site.

  105. Russ says:

    Will this work on https (secure) website?

  106. Great Script :) good job

  107. Stephan says:

    Hey Tom,

    Thanks for the great tutorial and plugin, I’m kinda new to jquery but i’m catching on. What I wanted to know was if this can be used as a network checker say for instance you’re a web host, and you would like to display if your network is experiencing any problems, and in the case it is to display a different img or message. Or am I looking for something very different. here is a link to what I’m trying to accomplish, they have a network status at the top.

    Thanks again for a great post!


    • Tom says:

      Hi Stephan, unfortunately checknet isn’t really the tool you are looking for to do this. This is front-end code that runs in people’s browsers to check the connection and you really need a back-end solution that will run on your servers. Good luck!

      • Krishna says:

        I got home from work yesterday aforenton and mowed the lawn and blew leaves before the rain came today. After I mowed my lawn, I went next door to my neighbors house and mowed his lawn and blew the leaves off his property. I slipped a pay it forward card under his door mat when I was finished. He came over and thanked me for what I’d done, and also asked me about pay it forward. I often do things for other people, but yesterday it felt a little different because it gave me the opportunity to tell him about paying it forward; also in hopes that it would have a chain reaction and many lives would be effected by such a positive and simple notion of paying it forward .

  108. solo says:

    amazing tutorial anda plugins.. its works great.. thank you so much.. been hours looking for this kind of tuts

  109. Septiyo says:


    Thanks a lot, it Work
    at first I try use it in my localhost using XAMPP, but it dont work, after I use on Hosting, it work Great.


  110. Derek says:

    Hey Tom,
    First of all, thanks to your site and to stackoverflow to let me find out that piece of code.
    Do you mind sharing the non-mini version of the code ?
    Also, rather than disable some input on the page, I’d like to redirect to a webpage when Internet connection is detected.
    Let me know :)


  111. William says:

    Nice work with this script. However I need some advice in how to use it in my current project. While this script is ideal for disabling forms, I need to redirect to:


    Hope that you can advise.

    • Tom says:

      Hi William, at the moment there is no callback fired when the connection drops or resumes, this is a feature that will be in a later version. Until I can do that, you’d need to do something like use setInterval() to continually check if checknet.conIsActiveand redirect if false.

  112. Shinu K Narayanan says:

    Thanks for your awesome plugin. Its very helpful..!

  113. Hariprasad says:

    Wow… Great… Really helps us..

  114. Vipil says:

    Great work buddy … it really helped us ………

  115. Jose says:

    Hi, Tom, your plugin it`s simply excelent, but I have a question, when the conection return, can reload the page?
    How I do?

    • Tom says:

      Hi Jose, in a later version I’m planning an event to be fired which can be used for running specific code when the connection drops or resumes. Until I have time to build that, you can use your own code to continually check the checknet.conIsActive property using the JavaScript setInterval() function and run another function depending on if it’s true or false – hope that makes sense.

  116. Hello tom Thanks For the Great Plug in. This plugin does not work on local Machine. Any Suggestions….

    • Tom says:

      Hi Vishnu, what is it about the plugin that doesn’t work? It is very common for the plugin to not detect lost connection on local dev environments. When you upload to a webserver on the Internet, it should behave the way it’s supposed to. Hope that helps!

    • Tom, i am just testing this in my jquery mobile website. but this is not working with jQuery Mobile website. Please Help…

  117. Dany says:

    Thank you for the great plugin.
    Just one request/question

    Is there a callback function when there is no connection ?
    For example if i want in addition to the message disable all clicks, or put an overlay on all the screen.

    Thank you

    • Tom says:

      Hi Dany, there is not currently a callback when connections drops, but that’s a great idea and I’ll incorporate it into the next version, whenever that may be ;) . There is currently a property in the global “checknet” object called “conIsActive” which is always either true or false. You can write your own js to check that property at rapid intervals and act accordingly. Not the best solution, but it should do what you want. Let me know if you need a hand writing that code. Thanks for using the plugin!

  118. KC says:


    Our checknet application is a landing page for people who register on our network.

    While unregistered, their device can only talk to the registration webserver. Once registered, their connectivity changes, and their device can talk to our public facing webservers and the Internet.

    Your checknet is working great in default mode where the URL is on the registration server, say:

    However, if I set

    checknet.config.checkURL = “”;

    even though can be loaded by the device when I type in that URL, checknet returns an error.

    What am I doing wrong?


    • Tom says:

      Hi KC, it sounds like an issue with Same-origin policy. If you specify a new checkURL, it needs to be the same protocol, port and host as the page checknet is running on – a different subdomain counts as a different host so the check will fail.

      So, you could point to a different file or directory, but it needs to be the same domain. This is a browser security feature so I can’t get around it with the plugin…

      I hope you find a solution, thanks for using it!

  119. Dileep says:

    Hi Tom ,

    Thanks for a nice plugin. But i have a note/feature_request.

    Currently it checking the connection status in N seconds by doing an ajax HEAD call , which is fine for smaller projects.

    But i have my own polling running on my pages. Doing some extra ajax calls only for network detection is not possible for me.

    so instead of the PLUGIN_AJAX_CALLS can i use the already running ajax_calls ? ( make it optional )

    The idea is trace ajax calls on web page and find the network status from that.

    or is there any other ideas ?

    Please let me know.


  120. dev says:

    Hi, Tom. Considering my self as lucky to land on your page. thanks to stackoverflow. currently i am working on a mini social networking webpage and though of incorporate this plugin. its great and i love it. however its not how i want it to be in my page. I want to disable all links if there is no connection (with or without notice, not even the timeout function). can you tweak a bit for me so that it will fire when user clicks on a link?

    With thanks

    • Tom says:

      Hi dev, really glad you got in touch. The plugin sets a global variable on the page called checknet.conIsActive that is always true when there’s a connection or false when there’s no connection. That means you can refer to that variable in any JS or jQuery you write. I haven’t tested this code, but you could achieve what you want by adding something like this:

      if( checknet.conIsActive == false ){
      //optionally write code here to run when user clicks a disabled link

      Basically that adds a click listener to all links that will prevent the browser following the link if the connection is currently disabled.

  121. Donavon says:

    Just started using this on an internal app that I wrote for my day job. For me, this assists in situations where a connection drops to handheld scanners used for inventory and order management in our warehouses.

    Everything appears to work great thus far, but I do have one issue. When loading a page that uses this function, for a split second the no network connection message appears. Is it possible to get around this? Not a big deal if it can’t be done, but having it appear throws off our not so tech savvy users when they see it…even after explaining that it is ‘normal.’

    • Tom says:

      Hi Donavon, the demo page doesn’t do this, so I’d suggest trying these things to prevent what’s happening:

      Make sure you are using the exact files jquery.checknet-1.6.min.js for checknet and jquery-1.9.1.min.js for jquery
      Make sure you are calling the checknet function inside a document ready like this:

      If that doesn’t work, you could send me a link and I’ll have a look. It’s a bit strange considering that the warning message doesn’t even exist in the DOM until it detects a problem, and the “conIsActive” property is true by default.

      • Donavon says:

        Hi Tom. I couldn’t find your email address anywhere on the site so if you could email me that would be great! I’ll reply with some of my code.

        In testing, it appears that it doesn’t *always* happen. I’m using the function properly with the same code in your example (and your reply above) and the correct files included in your ZIP.

        You only notice this when there is a load on a page…by load I mean heft. For very small/quick page loads, the issue doesn’t occur. The problem is when it takes a couple of seconds or more.

        Here’s what I think is happening:

        I left the timing at the default of 5 seconds so my hunch is that because the page hasn’t loaded by the time this timer ‘resets’ then the no connection error appears. When the page is loaded it goes away. I can exacerbate the problem by adjusting the time (e.g. checknet.config.checkInterval = 100;).

        • Tom says:

          Donavon, I think your hunch is correct. However, the $(document).ready(); is supposed to make sure it runs only when the page has finished loading. Can you ensure it’s the last thing on your html before the closing tag? If you have async=”true”on any other script tags, try removing the async parameter so they have to finish before moving on with loading the page.

          A quick-n-dirty solution might be to set checknet.config.checkInterval to 10000 (10sec) or 1500 (15sec). That should give the page more time to load, only there’s a risk that it will check the connection once before that setting is applied and add the warning. Putting a setTimeout around the $.fn.checknet would allow you to add a delay of your choice before it runs the first time – maybe try that?

          If there’s still a problem, email the code to and I will have a look at it. Cheers!

  122. Pete Butler says:

    Hi, Tom.

    This is a really cool plugin; thanks for making it available. I do have one question: do you have a non-minimized version of the source code you’d be willing to make available?

    I need to tweak it to get it to do exactly what I want it to, but as a relative jQuery neophyte, a single line of one-letter functions is kinda tricky to work with. :-) Also, I (and, I suspect, my boss) would be more comfortable including it in my code if how it works was a little clearer.

    If not, no worries; I’m sure I’ll sort it out.

    Thanks again,
    – Pete

    • Tom says:

      Hi Pete, I just emailed you!

      • Anton Krall says:

        Tom, I also would like to have a non mini version of your script because I would like to put it on a template I got and I need to modify it to use the modals it comes with.


      • Bill says:

        Cool code. I’d like to make a few changes to what it does when there’s no connection and a couple other things and it sure would be nice to have the full, non-minimized version. Can you also send it to me? Thanks.

  123. Kematzy says:

    Hi Tom,

    Thanks for your script. I’m using in a tiny internal web app I’m working on.

    I would recommend one tiny BIG change, which is this addition to the e.ajax() call:

    type: “HEAD”,

    When polling connection, there’s no need to request the entire page, as we only need to verify if connection is live. The HEAD request will provide sufficient proof that the connection is live.

    Also, I would strongly recommend users to poll a special URL on the domain instead of the current page, like this:

    checkURL: location.protocol + ‘//’ + + “/is-connection-alive” // returns “” only

    The reason for this is to reduce the server load. Imagine you are viewing a page that requires considerable resources to generate, DB queries etc, and now CheckNet is by default polling this page every 5 seconds. That’s a waste of resources.

    By giving a special ULR on the domain that requires only minimal processing time, we still achieve our intended result while saving server resources and bandwidth.

    Just my 2 cents worth of thoughts ;-)

    • Tom says:

      Kematzy, thanks for the great comment. Requesting the whole page has been my biggest concern all along as I did not know about the type: “HEAD” parameter you mentioned – I will definitely look into incorporating this into a new release soon. I deliberately avoided using a special URL for checking for ease of set up and to reduce the explanation of use, however, users can absolutely provide a specific URL that is on their server if they wish. The functionality is already there and I have written a bit about that in the blog post. Regarding server load, the plugin does stop checking if the window is not active/minimised etc, and then resumes when the user comes back to the window.

      Thanks a lot for your suggestion, it is genuinely helpful. If you feel like sharing, I’d love to see what you are using it for. I’ll update tjis comment when a I release a new version.

      • Rosa says:

        16aef3519dI loved as much as you will receive cerriad out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly very often inside case you shield this increase. 185

    • Tom says:

      Hi again, I’ve just uploaded v1.6, which incorporates your idea of using type: ‘HEAD’ – thanks for the suggestion :)

  124. Anand says:

    Its not working on Firefox on Mac. It works perfect otherwise.

    • Anand says:

      Also, on Mac, in Chrome, if window is not on focus, this stops working. I tested with
      This seems to be unreliable at this point unless proper testing is done and modifications are made.

      • Tom says:

        Thanks for the feedback, Anand. The plugin temporarily disables checking when the current window/tab is not at the front/maximised. There was a problem with restarting the check that I have just fixed in version 1.5 which is on the server now: (remember to clear your browser cache). Thanks again for picking this up and I hope you’ll still be interested in using it :) Tom

  125. Kevin says:

    I wonder if it would be possible to do something like this, but replace the current page with a full-screen error message instead, then load the page back when the connection is re-established? Maybe an over-lay div, or something? Suggestions?

    • Tom says:

      Hi Kevin, to achieve what you’re describing, add this code in the checknet.css file before the final “}”

      opacity: 0.9;
      padding: 20% 4% 4%;
      position: fixed;
      width: 92%;
      height: 100%

      …and that should do it.

      • Kevin says:

        That worked great. Thank you very much. Now, one more question:

        I am using this in a page that is accessed by a small client app. As long as the Internet connection is live at the time the app is launched, all is well, and the script catches when the connection drops, just as it should. However, if the Internet connection is down at the time the app is launched, I get the standard “cannot be found” error, because the web side page has not been served yet.

        I tried using your plugin from a local file, that matches exactly the page on the server, by changing the “window.location” in the plugin to the URL on my server. Unfortunately, due to sandbox restrictions, the AJAX request cannot access my web server from a local file.

        Is there an alternative way besides “navigator.onLine” (that just works if I lose network connectivity from my local computer, not the Internet per se), that will let me pull off this little magic until the person clicks through to my server-side page?

        • Tom says:

          Hi Kevin, unfortunately, I do not know a way to avoid using “navigator.onLine” with the situation you’re describing. It may be possible to implement a solution separate from checknet using JSONP techniques, but I don’t currently have the time in my life to explore that option and integrate with the plugin… hopefully in the future :)

  126. David says:

    Hello Tom, I need to run the plugin even if the html page is local.
    I downloaded your zip file, but he does not go on my desktop.
    In my project by jquery Mobile, pages are loaded locally and not from a webserver.
    Any ideas?


  127. Ghasem says:

    Thanks for the nice plugin, this is exactly what I needed.
    I have a problem with the checkInterval parameter, it seems that it has the default value of 5000(ms). I’m setting it to different number for example 20000, but while checking the connection requests in firebug I see that the request interval is 5 seconds yet!

    Thanks again

    • Tom says:

      Ghasem, this might happen if you set checkInterval before calling the main checknet function. Parameters need to be set after calling $.fn.checknet(). If that’s not the problem, can you send a link to your code online and I’ll have a look for the problem. Glad you are using it :)

      • Ghasem says:

        I’m setting the parameters after calling the main checknet function. I’m using the sample you’ve provided in the zip package, just changing some parameters as below:

        checknet.config.checkInterval = 20000;
        checknet.config.warnMsg = “ارتباط شما با سرور قطع شده است!”;
        checknet.config.checkURL = “netok.html”;

        in the alert it says that checkInterval value is 20000 but the real interval remains 5 (5000 miliseconds).
        *netok.html is a simple html file containing a message that net connection is ok.

        • Tom says:

          Hi Ghasem, sorry for taking so long to reply. I have a solution for this issue and will release a new version in the next few days. Thanks for pointing out the problem. I’ll update this comment when it’s available and you can also keep an eye on for info.

        • Tom says:

          Hi again, Ghasem. I am really sorry I’ve been so busy and only just had time to update the plugin. The problem you detailed has now been corrected in v1.4. Sorry again and thanks for pointing out the issue – I hope you are still able to use it.

          • Ghasem says:

            Thanks for the update, I’m gonna try it now
            I’m using it in my project, it’s very useful for me

  128. Aneta says:

    I am making Extension for Google Chrome. I’m using Your script but it doesn’t work. The checknet.conIsActive is always true. I have never programming in JScript or JQuery so probably I made some stupid mistake. Can I send you my extension on e-mail and You can look at this ?


    • Tom says:

      Hi Aneta, I haven’t tried making a Chrome Extension yet, so probably can’t help much right now. It’s definitely something I want to do with checknet so will set aside some time to work on making one soon though. If you keep an eye on my tweets (, I’ll give out info there, or check back on this blog post. Thanks for using the plugin!

    • Tom says:

      Update: I’ve looked into it, and unfortunately it’s not possible to make a Chome Extension using the plugin because of the way it detects connection. To make a Chrome Extension, you’d have to rely on something less reliable like the navigator.onLine property, or possibly find a JSONP solution. Sorry about that, thanks for being interested in the plugin.

  129. Mr.Atom says:


    Thanks for your awesome plugin. I am developing a WebView based app in android. I need to check the connection from JS. Now the thing is that all the JS are local to my app. Will the checknet work if i use it locally in the app? (I am not able to test this so far as this running in the emulator)

    • Tom says:

      Hi Mr. Atom, unfortunately I’m not able to test the behaviour in a WebView but would be very interested to find out. It needs to be able to get window.location as if it was on a webserver to work properly so I’m thinking it probably won’t work. Could you post your results? Thanks for using the plugin, sorry I can’t help more.

  130. Love it! been looking for a simple solution like this for a while!

    Would be great to have a parameter for setting the message returned or something! Testing this out in a mobile web app to disable functionality if app is not online. Works like a treat!

    • Tom says:

      Thanks Andrew, glad you are finding it useful! I think in the next update, I will set a configuration object for all the settings, so users can pass in things like the warning message if they wish. In the meantime, you could hack through the sourcecode to find the line “No Internet connection detected, disabled features will be re-enabled when a connection is detected.” and change it to whatever you want. Keep an eye on my Twitter stream for info on updates:

      Thanks again and remember to give links to what you’re making if you feel like sharing :)

    • Tom says:

      Update: I’ve just updated the plugin to v1.3, which allows you to specify the warning message (I’ve also updated the instructions above). You’re welcome!

  131. Kasimir Pfeiffer says:

    Ups, Sorry, missed to tell that on inital file load it works fine but after 5 seconds it shows that I´m offline even that I was online.

    Beside this – good stuff.

    • Tom says:

      Things like this are usually caused because of your local development environment. Does this happen when it’s live on the Internet?

      • Kasimir Pfeiffer says:

        It happens not in a local development environment. I´ll check your hint and see what happens. If i miss, then i do some further research about using ajax requests to check online status.

        Thanks for spending time to answer.

        • Kasimir Pfeiffer says:

          Hello Tom,
          just to your information:

          0. my knowledge of manifest-files is based on

          1. I tested it with chrome

          2. i made following extentions:

          3. manifestfile “test.appcache” in same dir as index. Content:

          # 2012-07-21:v10

          # Explicitly cached ‘master entries’.
          # All files required to be fully functional if offline

          # Resources that require the user to be online. Here only examples
          # / /static.html

          # offline.png will be served in place of online.png
          # images/online.png images/offline.png

          4. load page, but use it inkl. html-file name like:

          5. index is shown and all files are loaded to browsers lokal storage. as long as you are connected its okay.

          6. then you disconnect line: disconnect message appears

          7. now the trouble: if you connect networkcable again, it onlinemode is not realized.

          8. ??? probably a chance to put a file to NETWORK section (the files needs to be online) of manifest-file to make sure that this file is always only requested from online connection. ???

          • Kasimir Pfeiffer says:

            Extention under point 2 is simply enhancement of html tag by the manifest filename. I try it again with

          • Kasimir Pfeiffer says:

            Last Try:

            < html class=”no-js” lang=”en” manifest=”test.appcache” >

          • Tom says:

            Hi again Kasimir, unfortunately I’m not familiar with the “appcache” framework you are using, but if you can give me links to your application on the Internet, I will look at it and try to help further. The first step would be checking your js console for any errors, like missing files.

            Also, a quick observation: on first impression, it appears that developing your app using this type of framework would eliminate the requirement for a plugin like checknet. Are you sure it is necessary? Feel free to email me

          • Ritania says:

            I’ve read quite a lot of your site content at this point so that I thghout I’d personally create a remark and simply go on and state that you post fantastic material right here. Saved to fav this fabulous website years ago and still have been here for a long time. Once more, many thanks for creating this all easily readable for the community.

  132. Kasimir Pfeiffer says:

    I tried it by using that html page in a manifest file because i have to write an application that also works offline, but as soon as we are online, i want to give that info to the user. because of periodically check i can´t use FALLBACK or NETWORK in CACHE MANIFEST file. – Any Idea how to solve situation?

    • Tom says:

      Hi Kasimir, I’m not sure exactly how you would be using a “manifest file” but I have released a new version of the plugin (v1.2) which sets a global object in JavaScript called “checknet”. There is a property of this object, “checknet.conIsActive”, which gets continually updated with either true if connection is active, or false if connection is not active. In your app’s code, you can use something like this:

      if( checknet.conIsActive ){
      // the connection is active
      // the connection is not active

      Hope that helps :)

  133. Dave Miller says:

    Thank you !

    I have yet to implement but this is exactly what I was looking for.

    Could you publish the code for your test page ?

  134. Marcelo says:


    I ´m trying to use your plugin. But It didn´t work. I think you forgot to put something. I got your zip and paste in my project. i put css e js in same place you recommend. But I didn´t get work with it.

    I bless your help.

    • Tom says:

      Hi Marcelo,

      Are you sure you implemented all of the code the way I suggest in the instructions (including the $(document).ready code) ? If that is not the problem, you might need to upgrade to a more recent version of jQuery. Another thing to remember is that if you are running the page from a local webserver (not one on the Internet) then it will use that local webserver to check the connection.

      If none of that works, you could give me a link to your site so I can try to identify the problem. Thanks for being interested in my plugin :)

      • Marcelo says:


        I found the problem. i´m using eclipse with tomcat. When I start my server and disconnet my cable of internet nothing happen. But when I stop my server the warnning information apper say “your internet disconnect”. Great! Because, you put this strCheckURL=window.location
        . Then window.location is my application running in tomcat.
        Thank you!

        • Tom says:

          Great, I thought that might be the issue. I’d be interested to see what you are making if you feel like sharing the link when it’s online. All the best.

Leave a Reply