Comments (4)
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.
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.
implemented. also : looks like bb storm is now A. will need to check cache
from jquery-mobile.
k closing this then.
from jquery-mobile.
Related Issues (20)
- swipeleft/swiperight not working after first pageload but working afterwards HOT 1
- how to refresh rangeslider with transition
- content is not loading using ajax HOT 1
- filterablebeforefilter not working with jquery 3.3.1 environment HOT 2
- Exchange PhantomJs HOT 2
- Multiple selectmenu problem for IOS 13 webview
- Download builder page not working, hangs HOT 1
- Radio get unchecked when using html() function in jquery
- Uncaught TypeError: Cannot read property 'jqmData' of undefined HOT 1
- The download builder is broken HOT 1
- swipeleft and swiperight events fire when pinch-zooming
- swipeleft and swiperight events fire when moving a zoomed viewport around
- tap event not working HOT 1
- JQuery Mobile is Brilliant (2020) HOT 8
- Jquery : focus event not working in iphone browsers
- Duplicate datepicker is displayed when ui-datepicker is included in html dynamically and append to body is true
- Show slow not working iphone IOS
- Swiping unexpectedly prevents text selection
- Download builder problems
- Replace JSF CLA with OpenJS CLA HOT 1
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 jquery-mobile.