Archive for the 'code' Category
February 2nd, 2006 by Alexander Kirk |
56 Comments »
I complained before about bad guides to improve the performance of your website. digg it, add to delicious I'd like to give you a more realistic guide on how to achieve the goal. I have written my master thesis in computer sciences on this topic and will refer to it throughout the guide. 1. Determine [...]
Posted in code, web |
Permalink
January 3rd, 2006 by Alexander Kirk |
2 Comments »
Today I ran accross the blog entry by Marcelo Calbucci, called "Web Developers: Speed up your pages!". It's a typical example of good idea, bad execution. Most of the points he mentions are really bad practice. He suggests reducing traffic (and therefore loading time) by removing whitespace from the source code, to write all code [...]
Posted in code |
Permalink
November 11th, 2005 by Alexander Kirk |
3 Comments »
Have you ever received weird spam via the feedback form of your site? Something with your own address as sender or with some Mime stuff in the body? Your form is likely to be misused for spamming. How does it work? For PHP, for example, there is the mail function that can be used to [...]
Posted in code |
Permalink
October 19th, 2005 by Alexander Kirk |
11 Comments »
It's been a little quiet lately. This is because I am working on a cute little project that I will be able to present soon. More when the time is ready. There has been rumor lately that Zend (developer of PHP) will release a PHP Framework. This is nothing new, there has been a IDE [...]
Posted in code, php |
Permalink
October 11th, 2005 by Alexander Kirk |
7 Comments »
Today I did some experimenting with the caching of downloaded code (or On-Demand Javascript, whatever you want to call it). I've set up a small testing suite that currently tests 3 different ways of downloading code: script-tag insertion via DOM, XmlHttpRequest as a GET and XHR as a POST. These are my results for now: [...]
Posted in code |
Permalink
October 10th, 2005 by Alexander Kirk |
3 Comments »
I've been playing with Code downloading (or Javascript on Demand) a little more. Michael Mahemoff pointed me at his great Ajaxpatterns in which he suggests a different solution: if (self.uploadMessages) { // Already exists return; } var head = document.getElementsByTagName("head")[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = "upload.js"; head.appendChild(script); Via DOM manipulation a [...]
Posted in ajax, code, php |
Permalink
October 9th, 2005 by Alexander Kirk |
Comments Off
According to an interview of Sergey Brin (founder of Google) by John Battelle, Google does not plan to publish a web based office, as rumored before (fueled by a new partnership between Google and Sun (owner of openoffice.org)). "I don't really think that the thing is to take a previous generation of technology and port [...]
Posted in code |
Permalink
October 5th, 2005 by Alexander Kirk |
4 Comments »
Earlier, I suggested to use Code Downloading in order to reduce the size of AJAX application. I left the term undescribed, but I will change this now: As JavaScript is an interpreted language, it is quite easy to load additional code, even after the application has "started". This means that only code absolutely necessary to [...]
Posted in ajax |
Permalink
October 5th, 2005 by Alexander Kirk |
5 Comments »
As the prototype.js library lacks documentation and I recommend to use the down cut version for AJAX, I thought it might be useful to document how to use the AJAX related functions. A "normal" AJAX callback When you just want to do a post-back to the server (for example to store some data the user [...]
Posted in ajax, code |
Permalink
October 5th, 2005 by Alexander Kirk |
11 Comments »
Customized prototype.js for AJAX, small in size.
Posted in ajax, code |
Permalink
October 4th, 2005 by Alexander Kirk |
3 Comments »
Many AJAX applications overuse the new technology. Try using it at a reasonable degree.
Posted in ajax |
Permalink
October 3rd, 2005 by Alexander Kirk |
8 Comments »
The most used AJAX libraries take up quite considerable amounts of download volumen. Change that.
Posted in ajax |
Permalink