最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

browser - What happens to my web application if JavaScript is disabled? - Stack Overflow

programmeradmin6浏览0评论

I'm learning jQuery and am about to write some pages using intensively that library. I just learned that some user disable JavaScript on their browser (I didn't even know that was possible and/or necessary).

Now, here's my question: What happens to my web application if a user disable JavaScript? For instance, I'd like to display some screens using AJAX and mands such as 'InsertBefore' to bring in live a DIV that will display the result.

So, if JavaScript is disabled, I wonder what going to happen to all this work that relies on JavaScript?

I'm kind of lost.

Thanks for helping

I'm learning jQuery and am about to write some pages using intensively that library. I just learned that some user disable JavaScript on their browser (I didn't even know that was possible and/or necessary).

Now, here's my question: What happens to my web application if a user disable JavaScript? For instance, I'd like to display some screens using AJAX and mands such as 'InsertBefore' to bring in live a DIV that will display the result.

So, if JavaScript is disabled, I wonder what going to happen to all this work that relies on JavaScript?

I'm kind of lost.

Thanks for helping

Share Improve this question edited Mar 22, 2010 at 16:25 Daniel Vassallo 344k72 gold badges512 silver badges446 bronze badges asked Mar 22, 2010 at 10:01 Richard77Richard77 21.6k52 gold badges165 silver badges272 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 9

You may want to start by reading on Progressive Enhancement and Unobtrusive JavaScript.

I would also suggest to investigate how popular rich web applications like GMail, Google Maps and others, handle these situations.

I just learned that some user disable javascript on their browser

I do. The "NoScript" plugin for FireFox does the trick.

So, if Javascript is disabled, I wonder what going to happen to all this work that relies on Javascript?

It won't be functional.

A good practice suggests designing a site not to rely on JavaScript for major functionality. At least, accessing its content (in read-mode) should be possible. JavaScipt should only add interface enhancements like Ajax techniques etc. But the fallback version should always work.

I feel really sad when I see a site which is pletely broken without JavaScript. Why can't people use CSS to put elements in proper places? Why do they try to align elements with JavaScript even if there is no dynamics involved?

The same goes for Flash sites. Once in a while a land upon a "web-design-agency" site which makes picky ments about me not allowing JavaScript. When I do I only see a basic primitive site with a few menus and that's it. What was the point of using Flash when the work is so primitive it can be done with raw HTML and CSS in an hour? For me it's a sign of unprofessional work.

All what's done in JavaScript won't work. Some users disable it for security reasons, NoScript is an excellent example. You can try it yourself by removing the scripts from your page or installing the NoScript-plugin for Firefox.

As a rule of thumb:

  1. Make the website working with only semantic HTML
  2. add the CSS
  3. add the JS

But the website should be (almost) fully functional in stage 1.

If you disable Javascript in Safari things like Lexulous in Facebook won't work properly, the mouse letter carry function doesn't work.

发布评论

评论列表(0)

  1. 暂无评论