Re: [whatwg] Media query for bandwidth ??

2017-06-25 Thread Nils Dagsson Moskopp
"Michael A. Peters" writes: > […] > > The small increase in CSS file size doesn't matter with high bandwidth > clients and is justified for low-bandwidth as it reduces the content > that needs to be fetched. > > It would be up to the client to define the

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Michael A. Peters
On 12/09/2016 06:14 PM, Florian Rivoal wrote: On Dec 9, 2016, at 23:07, Michael A. Peters wrote: This was inspired by inspection of a style-sheet in the wild that uses screen-width to try and reduce bandwidth needs of mobile devices. I like the concept, but very often

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Florian Rivoal
> On Dec 9, 2016, at 23:07, Michael A. Peters wrote: > > This was inspired by inspection of a style-sheet in the wild that uses > screen-width to try and reduce bandwidth needs of mobile devices. > > I like the concept, but very often I use my mobile devices where

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Michael A. Peters
I have pondered that, and those cases will not be typical. The page may start to load the high bandwidth content (just like it does right now) and that may cause slow page loading as they walk outside (just like it does right now) but the next page at the site they load will use the

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Michael A. Peters
I don't think it needs to happen in JS first. A CSS media query is completely opt-in. Developers don't need to use the media query if they do not want to, it is just a way that developers can make their websites more friendly to users with bandwidth constraints without sacrificing for users

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Jonathan Garbee
Also, Ponder this case: User is on their cell phone and at home on wifi. So your "This user as 50MBs, send them 4k images!" query is hit on initial load. Well, 25% through page resources being called, they walk 20 feet outside of their home and now they are on their ~3G cell tower connection. If

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Jonathan Garbee
FTR there was a working group to provide a Network Information API [1] to let JS handle this more easily. In trying to do that, they had a difficult time actually getting accurate information for the API to provide. So it was canned in order to further assess the cases specifically and other

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Michael A. Peters
On 12/09/2016 09:03 AM, Boris Zbarsky wrote: On 12/9/16 5:57 AM, Michael A. Peters wrote: max-height and max-width and orientation change, but device-width does not change. Just as a point of fact, device-width can absolutely change. The simplest case is a two-monitor setup with the window

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Michael A. Peters
How the browsers determine bandwidth would be up to the browser. I assume they would have a reasonable default that the user can choose to override - like many other browser options. On 12/09/2016 08:19 AM, Jonathan Garbee wrote: So, if this were to get in it is magically up to users to know

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Michael A. Peters
My pages are not slow and tend to be much smaller than the typical web page out there. The size of a woff2 file can vary greatly depending upon what characters it covers and the complexity of those characters. jQuery is only needed once as it should then be cached for a very long time, and

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Boris Zbarsky
On 12/9/16 5:57 AM, Michael A. Peters wrote: max-height and max-width and orientation change, but device-width does not change. Just as a point of fact, device-width can absolutely change. The simplest case is a two-monitor setup with the window getting dragged from one monitor to another,

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Jonathan Garbee
So, if this were to get in it is magically up to users to know to go change the settings (most don't) to get different modes. That is bad design. We need to handle things for users in this situation. Not do something and hope they pay attention. If you're suggesting a feature that requires

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Yay295
On another note, are you sure it's *font files* that are slowing down your page load? Maybe I've just been lucky, but of the 24 font files I happen to have in a folder on my computer, 19 of them are only about 50KB. That's one-fifth the size of jQuery. Perhaps you should be looking at shrinking

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Michael A. Peters
max-height and max-width and orientation change, but device-width does not change. It should behave like device-width because it should be applied when the resources are fetched and the page is rendered. Yes low and high are relative, which is why it should be determined by the browser

Re: [whatwg] Media query for bandwidth ??

2016-12-09 Thread Jonathan Zuckerman
Michael - I think "high" and "low" are very relative terms, defining those terms for all users for all time doesn't seem possible. Also, connectivity/bandwidth are subject to change at any moment during the lifetime of a page. Current media queries like `max-height` or `min-resolution` would