GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ExplodingCabbage/preloadImage-test: Test of the function from https://stackoverflow.com/q/3646036/1709587

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
kittens
kittens
 
 
static
static
 
 
README.txt
README.txt
 
 
app.py
app.py
 
 

Repository files navigation

Test application to determine whether the approach from https://stackoverflow.com/q/3646036/1709587 works.

Usage instructions:

* Install Python
* Install Flask (e.g. `sudo pip install Flask`)
* Run `app.py` (e.g. `sudo python app.py`)
* Open the browser you want to test
* Go to http://localhost/static/preload.html
* Wait for a minute
* Go to http://localhost/static/kittens.html

If the first 23 kittens load instantly, the `preloadImage` function works in that browser. If they load after 10 seconds, it does not work. (The final kitten is a control kitten and should always take 10 seconds to load.)

When visiting http://localhost/static/preload.html, you may also want to look at either your browser's dev tools or the request log that Flask automatically prints to your terminal. You should see requests being responded to in batches 10 seconds apart. This is because there is a limit to how many requests the browser is willing to send simultaneously. If, despite this, the first 23 kittens on kittens.html load instantly, you can infer that this maximum number of parallel requests does not act as a limit on the number of images that can be preloaded in this way.

See https://stackoverflow.com/a/56012084/1709587 for explanation.

About

Test of the function from https://stackoverflow.com/q/3646036/1709587

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.