-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslow_test_page.html
More file actions
308 lines (279 loc) · 11.5 KB
/
Copy pathslow_test_page.html
File metadata and controls
308 lines (279 loc) · 11.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>60 Second Load Test</title>
<!-- Heavy CSS Libraries -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.4/css/bulma.min.css">
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-align: center;
padding: 2rem;
}
.container { max-width: 1400px; margin: 0 auto; }
h1 { font-size: 3rem; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.status {
background: rgba(255,255,255,0.2);
padding: 1.5rem;
border-radius: 12px;
margin: 2rem 0;
backdrop-filter: blur(10px);
}
.progress-bar {
width: 100%;
height: 30px;
background: rgba(255,255,255,0.3);
border-radius: 15px;
overflow: hidden;
margin: 1rem 0;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #00ff87, #60efff);
width: 0%;
transition: width 0.5s;
}
iframe {
width: 100%;
max-width: 600px;
height: 400px;
border: 3px solid rgba(255,255,255,0.3);
margin: 10px;
border-radius: 8px;
background: white;
}
img {
width: 100%;
max-width: 500px;
height: auto;
border: 2px solid rgba(255,255,255,0.3);
border-radius: 8px;
margin: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 15px;
margin: 2rem 0;
}
</style>
</head>
<body>
<div class="container">
<h1>⏱️ 60 SECOND LOAD TEST</h1>
<!-- Interactive Test Section -->
<div style="background: rgba(255,255,255,0.15); padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem;">
<h3>🎮 Responsiveness Test</h3>
<p style="font-size: 0.9rem; margin-bottom: 1rem;">Try clicking the button or typing while the page loads!</p>
<div style="display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap;">
<button id="testButton" style="
padding: 12px 24px;
font-size: 16px;
font-weight: bold;
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
border: 2px solid white;
border-radius: 8px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
" onmouseover="this.style.transform='scale(1.05)'" onmouseout="this.style.transform='scale(1)'">
Click Me!
</button>
<input id="testInput" type="text" placeholder="Type something..." style="
padding: 12px;
font-size: 16px;
border: 2px solid white;
border-radius: 8px;
background: rgba(255,255,255,0.9);
color: #333;
min-width: 200px;
">
</div>
<div id="interactionFeedback" style="
margin-top: 1rem;
min-height: 60px;
font-size: 1.1rem;
font-weight: bold;
color: #00ff87;
text-shadow: 0 0 10px rgba(0,255,135,0.5);
"></div>
</div>
<div class="status">
<h2>Loading Status</h2>
<div id="statusText">Initializing load sequence...</div>
<div class="progress-bar">
<div class="progress-fill" id="progressBar"></div>
</div>
<div id="timer">Time Elapsed: 0s</div>
</div>
<h2>Phase 1: Massive Image Load (200 Images)</h2>
<div class="grid" id="imageGrid"></div>
<h2>Phase 2: Wikipedia Iframes (27 Total)</h2>
<div class="grid" id="wikiIframes"></div>
<h2>Phase 3: YouTube Videos (10)</h2>
<div class="grid" id="videoIframes"></div>
</div>
<!-- Blocking script loads -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.4/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.4/gsap.min.js"></script>
<script>
let startTime = Date.now();
let buttonClickCount = 0;
// Button click handler
document.getElementById('testButton').addEventListener('click', function() {
buttonClickCount++;
const feedback = document.getElementById('interactionFeedback');
feedback.innerHTML = `✅ Button clicked! (Click #${buttonClickCount})<br><small>Page is still loading but interactions work!</small>`;
// Add visual feedback
this.style.background = 'linear-gradient(135deg, #00ff87, #60efff)';
setTimeout(() => {
this.style.background = 'linear-gradient(135deg, #667eea, #764ba2)';
}, 200);
});
// Input handler
document.getElementById('testInput').addEventListener('input', function(e) {
const feedback = document.getElementById('interactionFeedback');
if (e.target.value.length > 0) {
feedback.innerHTML = `⌨️ You typed: "<span style="color: #60efff;">${e.target.value}</span>"<br><small>Input is responsive even during heavy loading!</small>`;
} else {
feedback.innerHTML = '';
}
});
function updateStatus(message, percent) {
document.getElementById('statusText').textContent = message;
document.getElementById('progressBar').style.width = percent + '%';
}
function updateTimer() {
const elapsed = Math.floor((Date.now() - startTime) / 1000);
document.getElementById('timer').textContent = `Time Elapsed: ${elapsed}s`;
}
setInterval(updateTimer, 1000);
// Phase 1: Initial image load (200 huge images)
updateStatus('Phase 1: Loading 200 massive images...', 10);
const imageGrid = document.getElementById('imageGrid');
for (let i = 1; i <= 200; i++) {
const img = document.createElement('img');
img.src = `https://picsum.photos/4000/3000?random=${i}`;
img.loading = 'eager';
imageGrid.appendChild(img);
}
// Phase 2: Wikipedia iframes at 10s (12 pages)
setTimeout(() => {
updateStatus('Phase 2: Loading 12 Wikipedia pages...', 30);
const wikiContainer = document.getElementById('wikiIframes');
const wikiPages = [
'Artificial_intelligence', 'Machine_learning', 'Deep_learning', 'Neural_network',
'Computer_science', 'Algorithm', 'Operating_system', 'Database',
'Computer_network', 'Quantum_computing', 'Blockchain', 'Cybersecurity'
];
wikiPages.forEach(page => {
const iframe = document.createElement('iframe');
iframe.src = `https://en.wikipedia.org/wiki/${page}`;
wikiContainer.appendChild(iframe);
});
}, 10000);
// Phase 3: More Wikipedia pages at 25s (15 more heavy pages)
setTimeout(() => {
updateStatus('Phase 3: Loading 15 more Wikipedia pages...', 50);
const wikiContainer = document.getElementById('wikiIframes');
const moreWikiPages = [
'Data_science', 'Cloud_computing', 'Software_development',
'Internet', 'World_Wide_Web', 'Python_(programming_language)',
'JavaScript', 'Compiler', 'Virtual_machine',
'Computer_graphics', 'Artificial_neural_network', 'Big_data',
'Information_technology', 'Computer_programming', 'Web_browser'
];
moreWikiPages.forEach(page => {
const iframe = document.createElement('iframe');
iframe.src = `https://en.wikipedia.org/wiki/${page}`;
wikiContainer.appendChild(iframe);
});
}, 25000);
// Phase 4: YouTube videos at 40s (10 videos)
setTimeout(() => {
updateStatus('Phase 4: Loading 10 YouTube videos...', 70);
const videoContainer = document.getElementById('videoIframes');
const videoIds = [
'dQw4w9WgXcQ', 'jNQXAC9IVRw', 'kJQP7kiw5Fk', 'FTQbiNvZqaY',
'9bZkp7q19f0', 'ZZ5LpwO-An4', '60ItHLz5WEA', 'fJ9rUzIMcZQ',
'2Vv-BfVoq4g', 'L_jWHffIx5E'
];
videoIds.forEach(id => {
const iframe = document.createElement('iframe');
iframe.src = `https://www.youtube.com/embed/${id}?autoplay=0&controls=1`;
iframe.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture';
iframe.allowFullscreen = true;
videoContainer.appendChild(iframe);
});
}, 40000);
// Phase 5: More images at 52s
setTimeout(() => {
updateStatus('Phase 5: Loading final batch of 100 images...', 85);
for (let i = 201; i <= 300; i++) {
const img = document.createElement('img');
img.src = `https://picsum.photos/4500/3500?random=${i}`;
imageGrid.appendChild(img);
}
}, 52000);
// Phase 6: Heavy scripts at 56s
setTimeout(() => {
updateStatus('Phase 6: Loading massive JavaScript libraries...', 95);
const heavyScripts = [
'https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/vue/3.3.11/vue.global.prod.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/tensorflow/4.15.0/tf.min.js'
];
heavyScripts.forEach(src => {
const script = document.createElement('script');
script.src = src;
document.body.appendChild(script);
});
}, 56000);
// CPU intensive operations every 15s
let cpuInterval = setInterval(() => {
let result = 0;
for (let i = 0; i < 3e8; i++) {
result += Math.sqrt(i) * Math.sin(i);
}
console.log('CPU burn:', result);
}, 15000);
// Complete at 60s
setTimeout(() => {
updateStatus('✅ COMPLETE! 60 seconds of pure loading torture!', 100);
clearInterval(cpuInterval);
}, 60000);
console.log('🔥 60-SECOND LOAD TEST STARTED!');
console.log('Resources: 300 images, 27 Wikipedia pages, 10 YouTube videos, 12 JS libraries');
</script>
<div style="margin-top: 3rem; padding: 2rem; background: rgba(255,255,255,0.1); border-radius: 12px;">
<h2>⚠️ Warning</h2>
<p>This page takes exactly 60 seconds to fully load with:</p>
<ul style="text-align: left; max-width: 600px; margin: 1rem auto;">
<li>300 ultra-high resolution images (4000x3000px+)</li>
<li>27 complete Wikipedia pages in iframes</li>
<li>10 YouTube video players</li>
<li>12 massive JavaScript libraries</li>
<li>Continuous CPU-intensive calculations</li>
</ul>
<p><strong>Browser spinner will run for the full 60 seconds!</strong></p>
</div>
<p style="margin-top: 2rem; font-size: 1.5rem;">
⏱️ <strong>Optimized for exactly 1 minute of loading!</strong>
</p>
</body>
</html>