When using jQuery Mobile, how do I handle the style when JavaScript is disabled?

I play with jQuery Mobile (1.1.0 RC1) because it basically does everything that makes my site enjoyable on mobile devices.

What should I do if javascript is disabled? I'm still new to HTML5, but I understand that the style is based on data-* attributes and without jQuery being able to read what topic / role it needs, the style cannot be applied.

I cannot find the default stylesheet that I can apply, and Theme Roller does not provide a basic pattern. Does jQuery Mobile have any reserve for this, or do I need to write my own set of styles?

+6
source share
2 answers

jQuery Mobile only works in browsers that support jQuery. Otherwise, the rating system

Example:

+6
source

Surfing http://jquerymobile.com/demos/1.1.0-rc.1/ with javascript disabled (in my laptop browser) leads to a blank screen. Although javascript is enabled, it looks solid. Going to http://jquerymobile.com/demos/1.0a3/index.html with javascript atleast disabled gives me the main site.

I think you will need to provide your own basic mobile css if you need to support mobile browsers with javascript disabled.

+3
source

Source: https://habr.com/ru/post/909662/


All Articles