Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: LayoutTests/http/tests/misc/resources/image-slow-out-of-viewport.pl

Issue 109153003: Raise the loading priority of in-viewport images. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changes from review. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/perl -w 1 #!/usr/bin/perl -w
2 2
3 # flush the buffers after each print 3 # flush the buffers after each print
4 select (STDOUT); 4 select (STDOUT);
5 $| = 1; 5 $| = 1;
6 6
7 print "Content-Type: image/jpeg\r\n"; 7 print "Content-Type: image/jpeg\r\n";
8 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\r\n"; 8 print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\r\n";
9 print "Cache-Control: no-store, no-cache, must-revalidate\r\n"; 9 print "Cache-Control: no-store, no-cache, must-revalidate\r\n";
10 print "Pragma: no-cache\r\n"; 10 print "Pragma: no-cache\r\n";
11 print "\r\n"; 11 print "\r\n";
12 12
13 sleep 2; 13 sleep 2;
14 14
15 open(FILE, "compass.jpg"); 15 open(FILE, "compass.jpg");
16 while (<FILE>) { 16 while (<FILE>) {
17 print $_; 17 print $_;
18 } 18 }
19 close(FILE); 19 close(FILE);
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/loading/promote-img-preload-priority-expected.txt ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698