3 ms·
How about a new attribute to match what phones actually provide: keyboard=text|digits|url|emoji
by kohtatsu 8y ago
How about a new attribute to match what phones actually provide: keyboard=text|digits|url|emoji
- k9wolf 8y agoHonestly something we'd all love to see
- ThePadawan 8y agoI have been thinking about a similar question while building a image hosting site. Which resolution of thumbnail should I provide for each client? On a desktop, I can be reasonably sure that the user doesn't have limited data or bandwidth, but their resolution (and dpi) might be quite small. On mobile, the user might have a hiDPI screen which indicates I should send them a high-resolution thumbnail. But I don't know if they would like me spending their limited data or bandwidth that liberally. So far, I haven't found a way to indicate or request these sort of preferences, but with the up-and-coming support for srcSet, <picture> elements etc., I would love to provide multiple thumbnail alternatives if a client could reasonably decide between them.
- pjmlp 8y agoA possible solution, but it requires JavaScript enabled, and manual work, is to have a service worker provide such information up to the server.