Christian Heilmann

You are currently browsing the archives for the General category.

Archive for the ‘General’ Category

Busy writing course material

Tuesday, February 22nd, 2005

Tomorrow I will hold a workshop on accessibility with developers and designer of a local council site. God I wished I could explain accessibility rather than “how to get AAA certified”....

On the plus side: My 1mbit line is active :-)

Trackback

Sunday, February 20th, 2005

sigh Now that I made sure no “poker” comments get through any longer, they do it with trackback URLs. Hey, if nobody wants to use your site it is maybe because it is not interesting. Gambling is not illegal here in Europe, only in the land of the free!

Conditional loading of large Javascript files

Wednesday, February 16th, 2005

You may sometimes find yourself with big Javascript libraries to include in your documents. Currently I am on a project where one of them is about 1MB big (don’t ask).
Now, I wondered what can be done to only apply these when they are really needed, and the answer, aside from adding an extra page to the process is to add them dynamically via the DOM:


window.onload=function(){
if(!document.getElementById || !document.createElement){return;}
var newjs=document.createElement('script');
newjs.type='text/javascript';
newjs.src='functions.js';
document.getElementsByTagName('head')[0].appendChild(newjs);
}

This example would only load the file “functions.js” when DOM is available in the browser, older browsers would not load the file.

[tags]webdevtrick,conditionaljavascript,performance[/tags]

Internet Explorer 7 ante portas?

Tuesday, February 15th, 2005

After us whining and cursing the aged Internet Explorer 6, Microsoft seems to have plans to ship out Internet Explorer 7. Planned only for Windows XP2 users, and not backward compatible to win2k (how could it be without reusing the same engine?) it promises better security but so far there is no word as to the standards compliance of it. More information in Bill Gates’ Keynote delivered this morning. I won’t hold my breath and stay with my Firefox for the time being.

Wonderful article on colour and accessibility

Tuesday, February 15th, 2005

I just approved a truly wonderful article on colour and accessibility for evolt.org. Well written, to the point, and with loads of links to dive into.