Reputation: 9185
Better still, may be it can provide load time parameterized web page. I know, I am asking for too much.
Thanks anyway.
Upvotes: 1
Views: 53
Reputation: 17629
I'm not exactly sure about the real value of a slow loading page, but here we go:
Download Ruby and install it
Save the following code to slowpage.rb
require 'rubygems'
require 'sinatra'
get '/sleep/:seconds' do
sleep(params[:seconds].to_f)
"Yay, I just waited #{params[:seconds]} seconds"
end
At the command line type:
gem install sinatra
ruby slowpage.rb
Then open your browser and go to http://localhost:4567/sleep/5, which will take about 5 seconds to load the page.
Upvotes: 1