GithubHelp home page GithubHelp logo

Comments (4)

scottjehl avatar scottjehl commented on May 19, 2024

ugh. trying again...

Idea:

If we structured our head markup like this:
<!-- basic styles for all browsers -->
<link rel="stylesheet" href="css/basic.css" />
<!-- mobile applies in media-q supporting browsers -->
<link rel="stylesheet" media="screen and (min-width: 0)" href="css/mobile.css" />
<script src="jquery.andmobile.js"></script>

Then our first condition in jQuery Mobile's JS could have this:

if( !$.media('screen and (min-width: 0)') ) {
return;
}

Would that satisfy our A-grade vs. C-grade divide cleanly? Essentially, we'd make the cut based on media-query support, which might actually align quite cleanly with our browser support list.

C browsers still get basic styling of functional content.

Within mobile.css, we can make further divisions for desktop, tablet, handheld based on more specific media queries.

from jquery-mobile.

scottjehl avatar scottjehl commented on May 19, 2024

Quick breakdown of the breakdown the code above creates:

A Grade:

  • iOS (all?)
  • Android
  • Blackberry Torch
  • HTC w/Opera Mobile
  • Opera Mini
  • WebOS
  • Fennec (I assume, as the nokia is not working right now)
  • Desktop: Safari 3+,Chrome, Firefox 3.5, Opera (since like 7), Internet Explorer can also be given support through conditional comments

C Grade: (Coincidentally, when Media Queries aren't used, many of these browsers freeze on the "loading" screen in JQ Mobile)

  • Blackberry Storm and older
  • Mobile IE
  • older phones
  • older desktop browsers

I'm not sure of the Nokia divide, as both our n96 and n71 are not behaving right now.

from jquery-mobile.

scottjehl avatar scottjehl commented on May 19, 2024

implemented. also : looks like bb storm is now A. will need to check cache

from jquery-mobile.

scottjehl avatar scottjehl commented on May 19, 2024

k closing this then.

from jquery-mobile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.