Firefox OS User Agent
While we consider user agent sniffing a horrible practice on the client side, UA sniffing is done quite a bit on the server side to serve up the appropriate page version of a site, or redirect to, for example, the mobile version of the site. This can be a dangerous road but most large site with a separate mobile interface do it. The following is the user agent for Firefox OS:
Mozilla/5.0 (Mobile; rv:18.0) Gecko/18.0 Firefox/18.0
At the moment, many large sites are sniffing for iPhone|Android instead of "Mobile", and thus they are serving their desktop site to Firefox OS devices. Be aware of the Firefox OS user agent and update your server side logic appropriately!
Note: Of course the version number within the user agent will update often, so detect "Mobile".
David asked me if I'd be up for a guest post picking out some of my favorite Pens from CodePen. A daunting task! There are so many! I managed to pick a few though that have blown me away over the past few months. If you...
Your early CSS books were instrumental in pushing my love for front end technologies. What was it about CSS that you fell in love with and drove you to write about it?
At first blush, it was the simplicity of it as compared to the table-and-spacer...
Last week we created a very simple MooTools slideshow script. The script was very primitive: no events and no next/previous controls -- just cross-fading between images. This tutorial will take the previous slideshow script a step further by:
Adding "Next" and "Previous" controls.
Step 1: The XHTML