Optimizing
Perceived Performance
Monday, March 23, 2009
About Me
Monday, March 23, 2009
My Startup
Monday, March 23, 2009
DBDB
Monday, March 23, 2009
http://github.com/
dce/dbdb
Monday, March 23, 2009
http://github.com/
dce/dbdb
public/javascripts/application.js
Monday, March 23, 2009
def bagfactor
sleep(2)
rand(50) / 10.0
end
Monday, March 23, 2009
It could happen
to you
Monday, March 23, 2009
First Impressions
Monday, March 23, 2009
Up to...
0.1 second instantaneous
1 second responsive
10 seconds slow
> 10 seconds gone
– About Face 3
Monday, March 23, 2009
Bring in the AJAX
Monday, March 23, 2009
Some
Definitions
Monday, March 23, 2009
Progressive
Enhancement
Monday, March 23, 2009
Unobtrusive
Javascript
Monday, March 23, 2009
HIJAX
Monday, March 23, 2009
jQuery
Monday, March 23, 2009
class DbsController < ApplicationController
def show
@db = Db.find(params[:id])
respond_to do |format|
format.html
format.js do
render :partial => \"profile\", :locals => { :db => @db }
end
end
end
end
Monday, March 23, 2009
class DbsController < ApplicationController
def show
@db = Db.find(params[:id])
respond_to do |format|
format.html
format.js { ... }
format.json do
render :json => { :bagfactor => @db.bagfactor }
end
end
end
end
Monday, March 23, 2009
As Phil Karlton said, “there are only two hard th more
As Phil Karlton said, “there are only two hard things in Computer Science: cache invalidation and naming things.” Despite enormous advances in the field of web development over the last five years, it remains difficult to use caching to allow sites to scale for expanding user bases. Fortunately, the last few years have also seen the rise of JavaScript libraries that take a lot of the pain out of client-side programming. In this talk, we’ll explore techniques for making your sites feel faster, without resorting to complicated caching schemes, while maintaining strict separation of content, style, and behavior.
Associated code is available at http://github.com/dce/dbdb less
0 comments
Post a comment