Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Thursday, 6 December 2007

24ways: Minification: A Christmas Diet

Another excellent entry to 24ways for 6th of December. Gareth Rushgrove writes about the necessity to minify HTML, CSS and Javascript for todays web applications.
With all the added Web 2.0 features these days, minification of HTML, CSS and JS cannot be stressed more! Web applications of today are growing into bigger proportions no only content wise, but also form the point of sourcecode.

Minifying your Javascript files or using preminified versions of your favorite Javascript framework is a must, since like your CSS files, these will be generating alot of bandwidth.

At my workplace we decided to adapt existing minifying methods for CSS and Javascript and tie the minification into the Webserver process, using PHP and Apache mod rewrite rules to both minify and cash CSS and Javascript files. This way we are able to reduce the load on sites generated from these files by manyfold, making YSlow cheer at the small file sizes and less loadtimes.

The Apache mod rewrite rules will pick out CSS and Javascript requests to the server and parse them through our PHP Minifier, which will check for an update to the cashed file and minify the code at the same time. To reduce requests even further we added the possibility to load multiple CSS and Javascript files with less requests, by tying them together, when the browser reads the HTML Source.

Thursday, 18 January 2007

Waves of dismay crashing upon the new famous Outlook 2007 HTML support through Word HTML Processor

Sometimes we wish, we would head back to the old days and do it the way it was done then, and just say "That's just the way it's done", but then we might reconsider.
Not so for Microsoft recently! For whichever reasons that i would like to hear some clarification on, Microsoft has replaced their HTML Rendering engine for Outlook 2007 to the Word HTML Processor, though it used the Internet Explorer rendering engine in its recent versions.

Now why would that make a difference? Well, marketing branches of company websites have ever since it was possible to send HTML E-Mails, been publishing HTML Newsletters with rich HTML content up to the latest standards of CSS 2.1 and so been able to convey all there marketing features not only through the website, but also through colorful, highly designed HTML Newsletters.

With a possible growing distribution of Outlook 2007, those days are over!

Regarding to the specifiations of HTML Rendering in Outlook 2007, read these to Microsoft articles for detailed informations:

msdn2.microsoft.com/en-us/library/aa338200.aspx
msdn2.microsoft.com/en-us/library/aa338201.aspx
(thankfully rather well documented)

In short this will mean that when you create HTML Newsletters you are back to the basics, since some features will not be supported anymore as detailed in this article:
http://www.sitepoint.com/blogs/2007/01/10/
microsoft-breaks-html-email-rendering-in-outlook/


Short summary of CSS features not supported:
  • no support for background images
  • no support for CSS floats and positioning
  • no support for bullet images on lists
  • no support for forms, flash and animate GIFs
As can be seen by example of Molly Holzschlag's blog this is already producing waves of dismay throughout the web development community.

Look at the Campaign Monitor site to get a feeling for the impact on HTML Newsletters, by a simple example:
http://www.campaignmonitor.com/blog/archives/2007/01/
microsoft_takes_email_design_b.html


I was ready to scream and loose hair that i don't have anymore, until i started talking to a colleague of mine, after which we came to the conclusion, that this might not be to bad at all, well from the developing point of view, certainly not from the marketing point.

With those downsized CSS features, kicking us back to stone age in terms of HTML Rendering, we are left with the basics, meaning:
  • Table layouts
  • Images (not as backgrounds)
  • styles as tag attributes
Also this will mean that HTML Newsletters can be read by more E-Mail Clients than before and a wider coverage and possible acceptance can be achieved.

What this might also impact, would be a switching of HTML Newsletters to News feeds through RSS, although Outlook 2007 supports that too, but primarly email clients are not used as RSS feed readers nowadays. So go, go RSS!

My personal opinion: HTML was never and should never have been used for E-Mails. So "hurray" from my personal point of view.

With its strong monopoly and still remaining one of the most used operating system, Microsoft is once more rocking parts of the worlds, with small changes :)

Tuesday, 9 January 2007

Firefox: Editus Externus

I have been using this extension for quite a while now. What does it do? You can edit browser textareas using an external editor of your choice. As a web developer this has proven indespensible for me and i even waited to upgrade to Firefox 2, until someone came down with an upgraded version of this sweet little addon.
Now with the release of Firefox 2.0.0.1 it was outdated again, and noone has posted a new version yet. Simple things are so easy, so i extracted the whole thing and simply changed the version number in the install.rdf.

Happy to share this with the you through rapidshare: http://rapidshare.com/files/10914171/
editus_externus-0.9.1-fx3.xpi.html


Kudos for this addon go to https://addons.mozilla.org/firefox/1195/

Adsense