Category Archives: Web Browsers

Point, Charset, Match: Character Encoding in JavaScript

If you’re not familiar with the principles of character encoding, read the prerequisite Dive Into HTML 5 section on the subject. When you see issues with Character Encoding, it’s traditionally in the form of text on your page that looks like this: in Firefox or in IE. Usually, those characters mean that the character encoding [...]
Also posted in JavaScript | Tagged , | 1 Comment

CSS 3 Text: A Tale of writing-mode Woe

After reading an interesting article on using the writing-mode CSS property to display vertical text (I’m always interested in how to abuse what browsers currently support into something new and exciting), I decided to look into this writing-mode property and see what opportunities it might present. Generally when exploring a development opportunity, I tend to [...]
Also posted in CSS | 3 Comments

Don’t Give Up on Internet Explorer Yet

These days, the browser landscape is more fragmented than ever. Were times easier back when IE6 and Firefox ruled the internet? Easier perhaps in terms of the number of browsers you had to launch for testing, but not better for any user’s experience. We are in a new world, where more web browsers are causing [...]
Posted in Web Browsers | Tagged , , | 4 Comments

DOMContentLoaded Inconsistencies (in Browsers and JavaScript Libraries)

We all know the problem, but we may not all call it the same thing: DOMContentLoaded. Every popular JavaScript library has its own name for the DOMContentLoaded event, and they're all implemented differently. This, of course, partly due to the fact that web browsers are also inconsistent in their implementations. Here's a run-down of those inconsistencies.
Also posted in JavaScript | Tagged | 1 Comment

Relative URLs including the Domain

Just a neat little trick I saw while browsing the source code of Google Calendar. In some of their CSS files, they link to background-images using URLs that include everything but the protocol, which is something I hadn't seen before.
Posted in Web Browsers | Tagged | 1 Comment

Don’t Let the Door Hit You Onunload and Onbeforeunload

Many people attempt a last ditch effort to save page state in the browser by using the onunload or onbeforeunload events. This has been studied at great length by Patrick Hunlock, who uses the perhaps now common knowledge of using a Synchronous Ajax call to perform the page state save. Another use for the onbeforeunload [...]
Also posted in Interface Design, JavaScript | Tagged , , , | 8 Comments

Minor Annoyances with Firefox Development

When you’re developing web applications in Firefox, do you find yourself constantly clearing your cache? Cache is a useful facet of web browsing for everything but the continuous testing environment of web development. Here’s a nice alternative so that you don’t have to disable your cache entirely: Use the Firefox Plug-In called (humorously enough) JohnnyCache. [...]
Posted in Web Browsers | Tagged , | Leave a comment

Problems with Looping through window.setInterval

Look at this code. What do you expect to be the outcome?
Also posted in JavaScript | Tagged , | 3 Comments