Enable broken image placeholders in Firefox

March 11th, 2010

Something that has always bugged me about Firefox is that if it encounters a broken image it doesn’t display an image place-holder. Instead it displays the alt attribute as in-line text. This can cause problems if your primary development browser is Firefox, as you may not notice broken images on a page.

For a while there has been an option in the config to display image place-holders while a page loads but not for broken images as on IE (yes I’m praising an IE feature!).

Image placeholders on load is set to ON by default, your can change this if you want by going to about:config and searching for ‘image’. The option your looking for is:

browser.display.show_image_placeholders

Just double click to change the value.

As I said before, this doesn’t affect broken images after the page has loaded, and after several searches it looks like the option just isn’t available to Fx users as a general setting. There is however a solution…

Firefox allows users to specify custom CSS to be applied to websites on a global basis, e.g if you want your default link colour on unvisited links to be black instead of the default blue.

You do this by making changes to your global content css file. You can find it at the following location (OS Specific – I’m on windows 7) ‘%appdata%\Mozilla\Firefox\Profiles\\chrome’ (if your on a domain you will need to edit it in your roaming folder), look for a file called ‘UserContent-example.css’ and rename it to ‘UserContent.css’, this will then be loaded by Firefox when it fires up.

Add the following CSS to the file and restart Firefox..
/* Enable image placeholders */
@-moz-document url-prefix(http), url-prefix(file) {
img:-moz-broken{
-moz-force-broken-image-icon:1;
width:24px;
height:24px;
}
}

Thats it… when you next come accross a broken/missing image, you will get a box the size you have defined in its place with the alt inside it.

Happy 5th Birthday Firefox

November 9th, 2009

Mozilla Firefox is 5 years old today!
Version 1.0 of the popular open source web browser was unleashed upon the world November 9th 2004 and has gone from strength to strength ever since.
Currently on version 3.5 Firefox has gained huge following over the years (including yours truly) and is currently chasing the heals of Microsoft’s Internet Explorer well ahead of the compitition (Opera, Google Chrome, Safari, etc).

You can read more on the history of Mozilla Firefox on this wikipedia article.

Users of Twitter can show their support by adding a Twibbon to your Twitter profile picture

And everyone else can forward this link to friends, family, colleagues, acquaintances and anyone else you meet on the street – http://getfirefox.com/ and help to make the web a better place

Fennec Alpha 3 on Windows Mobile

September 7th, 2009

Friday saw the release of a third alpha build of Fennec, Mozilla’s mobile browser, I have spent my weekend browsing useing this latest build rather than the much favoured Opera Mobile and I have to say well done to the Fennec dev team.

This latest build see’s imp0rovment over the supported screen resolutions which means on my TYTN II, I can finally use Fennec in portrait mode and also view the options screen :) So far development on the Windows Mobile build have only been officially supported on the HTC Touch Pro, this latest build now supports the resolution of pretty much all the Windows Mobile based phones of the last couple of years.

The biggest update in this release is noted as being the start-up time. Although to be honest I haven’t noticed any difference myself, there had also been the addition of tile caching, similar to Google Maps, in order to speedup the rendering of pages and cut down on the work Fennec must do, you can read more about the tile caching on Roy Frostig blog

The only downside I could find with this latest release is that the ability to zoom appears to have disappeared, double-clicking on the screen makes it flicker but nothing happens.

If you want to read more on this latest release, see the offical blog post, the release notes and better yet, download the cab installer.

Firefox 3.5.3 available for testing

September 2nd, 2009

Mozilla have announced the next available Firefox build for developers.
This release contains mainly security and stability fixes, details of which can be found in the FF3.5.3 bug list

Anyone riding the BETA channel can do a manual update to download ff3.5.3 otherwise you can download from here – http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/3.5.3-candidates/build1/

Firefox 3.6 Alpha 1 now available for download

August 9th, 2009

Mozilla have announced the first developer milestone of Firefox 3.6 is now available to download for developer testing. Code named Namoroka, it is built on a pre-release version of the Gecko 1.9.2 platform and introduces several new features, most noticeably speed improvements to TraceMonkey and more support for CSS3.

You can download Namoroka using the following links

Mozilla have, as always, released a developer guide to the new features, for a full list of additions to Firefox 3.6 follow this link

Return to the Homepage Read Gavin Taylors Blog View Gavin Taylors Portfolio About Gavin Taylor Contact Gavin Taylor