Entries Tagged as 'Performance'
"Script Island" is what I'm calling a design pattern I alluded to here. The pattern is to embed Javascript in your HTML like so:
PLAIN TEXT
HTML:
<script id="greeting" type="x-deferred-script">
alert("this is my script - it's eval'd on demand");
</script>
When the page loads, the browser should say "I don't know what 'x-deferred-script' is, and therefore ignore the concents [...]
[Read more →]
Tags: Ajax Patterns·Design Patterns·Javascript·Performance·Presentation
Update (2 days later): The site’s been popular - 10k+ views yesterday. Hit Delicious Popular and somehow got caught up in the German blogosphere, the greatest source of hits. Technorati it. There’s a good discussion in Ajaxian of the strengths and weaknesses of this technique. As with AjaxPatterns, which also reached Delicious Popular, it failed [...]
[Read more →]
Tags: Benchmark·IFrame·Javascript·Links·Performance·WebWait
Summary: Avoid $$(".classname") on large DOMs!!!
I've recently been optimising the guts out of a JS webapp I wrote, which was making IE crawl to a halt. I discovered this after introducing a stress-inducing data set. (Using Rails' fixtures makes light work of this; since the fixtures are Ruby templates just like the web templates, it's [...]
[Read more →]
Tags: DHTML·ERb·Javascript·Links·Optimisation·Optimization·Performance·Rails·Tuning
The fourth and final podcast in this series of Ajax Programming Patterns. As always, the patterns are online at AjaxPatterns.org and covered in the book too, now available at Amazon. This 33-minute podcast covers seven patterns of Performance Optimisation:
Browser-Side Cache Maintain a local cache of information.
Guesstimate Instead of grabbing real data from the [...]

Standard Podcast [33:47m]:
Play Now |
Play in Popup |
Download
[Read more →]
Tags: AjaxPatterns·DHTML·Javascript·Links·Optimisation·Optimization·Performance·Podcast·Software·Tutorial·Web·Web 2.0
You know AjaxPatterns? It's a wiki about Ajax. Anyway, it's now fully open for editing, but I'll post more about that later. Right now, this post covers a particular pattern that's been sitting in eXtreme Stub mode for some time, and has now got a little flesh to it.
Pseudo-Multithreading (mmmm...just rolls off the tongue) is [...]
[Read more →]
Tags: AjaxPatterns·Javascript·Links·Multithreading·Optimisation·Optimization·Patterns·Performance·Threading·Web·Web2.0
Recent Ajax apps like Kiko are sluggish according to Alexander Kirk's "Rise of Slow Ajax Applications (via AjaxDeveloper):
Pages get more voluminous because so much code has to be loaded to the browser (which makes the browser slow again) so you could just begin to use the application. This somehow reminds me of all [...]
[Read more →]
Tags: AjaxPatterns·DHTML·Javascript·Kiko·Links·Patterns·Performance·Software·Web