Title: Alex Kirk – Page 126 – 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@alex.kirk.at


 **270** posts

 **266** followers

 Friends Plugin

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

 Enable Mastodon Apps Plugin

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

 Homepage

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

 [ Posts & Replies ](https://alex.kirk.at/author/alex/page/126/?output_format=md&filter=posts-and-replies)
[ Posts ](https://alex.kirk.at/author/alex/page/126/?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/125/?output_format=md)

[1](https://alex.kirk.at/author/alex/?output_format=md) … [124](https://alex.kirk.at/author/alex/page/124/?output_format=md)
[125](https://alex.kirk.at/author/alex/page/125/?output_format=md) 126 [127](https://alex.kirk.at/author/alex/page/127/?output_format=md)
[128](https://alex.kirk.at/author/alex/page/128/?output_format=md) … [135](https://alex.kirk.at/author/alex/page/135/?output_format=md)

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