Title: Alex Kirk – Page 128 – Alex Kirk

---

![Alex Kirk](https://alex.kirk.at/wp-content/uploads/sites/2/2025/06/cropped-2025.
Alex-512x512-1-120x120.jpg)

Alex Kirk

@alex@kirk.at


 **274** posts

 **295** followers

 Blog

[https://alex.kirk.at/](https://alex.kirk.at/)

 [ Posts & Replies ](https://alex.kirk.at/author/alex/page/128/?output_format=md&filter=posts-and-replies)
[ Posts ](https://alex.kirk.at/author/alex/page/128/?output_format=md&filter=posts)

 * 
   ## 󠀁[Caching of Downloaded Code: Testing Results](https://alex.kirk.at/2005/10/11/caching-of-downloaded-code-testing-results/)󠁿
   
 * 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:…
 * 
   ## 󠀁[Better code downloading with AJAX](https://alex.kirk.at/2005/10/10/better-code-downloading-with-ajax/)󠁿
   
 * 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…

 [Previous Page](https://alex.kirk.at/author/alex/page/127/?output_format=md)

[1](https://alex.kirk.at/author/alex/?output_format=md) … [126](https://alex.kirk.at/author/alex/page/126/?output_format=md)
[127](https://alex.kirk.at/author/alex/page/127/?output_format=md) 128 [129](https://alex.kirk.at/author/alex/page/129/?output_format=md)
[130](https://alex.kirk.at/author/alex/page/130/?output_format=md) … [137](https://alex.kirk.at/author/alex/page/137/?output_format=md)

 [Next Page](https://alex.kirk.at/author/alex/page/129/?output_format=md)