Skip to content

Commit 9f97606

Browse files
committed
fix: use CORS-friendly CDN for speed test (jQuery from cdnjs)
1 parent f7636e6 commit 9f97606

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/page.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,7 @@ function App() {
403403
}
404404

405405
function runSpeedTest() {
406-
const testUrl = 'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png';
407-
const fileSize = 13 * 1024; // Approximate size in bytes
406+
const testUrl = 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js';
408407
const started = performance.now();
409408
setSpeedState({ running: true, dl: null, ul: null, ping: null, message: 'Testing download speed…' });
410409

@@ -839,7 +838,7 @@ function App() {
839838
<ul className="mt-4 space-y-3 text-sm text-slate-400">
840839
<li>QR generation uses a public image endpoint for this prototype. Swap it for a local library before deploying.</li>
841840
<li>Currency conversion is manual/static here. Replace it with a real rate source if you need live FX.</li>
842-
<li>Speed test now uses Google's public logo image for testing. For production, configure your own test file or backend endpoint.</li>
841+
<li>Speed test downloads a public library file via CDN. For production, use your own test file or backend endpoint.</li>
843842
</ul>
844843
</div>
845844
</aside>

0 commit comments

Comments
 (0)