Biswanath
Biswanath

Reputation: 9185

Is there a web application, which can provide me a slow loading page for testing?

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

Answers (1)

Matt
Matt

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

Related Questions