Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityWindows-Update beschädigt wichtige Datenrettungsfunktion(22.09.2026 um 09:04 Uhr)
Sichere ProgrammierungBuilding an Accessible Ecommerce Product Page with WCAG 2.2(22.09.2026 um 03:39 Uhr)
Sichere ProgrammierungGet Your Website Protected in 10 Minutes with SafeLine WAF(22.09.2026 um 08:42 Uhr)
Sichere ProgrammierungIntroduction to SPRINGBOOT(22.09.2026 um 08:42 Uhr)
Windows Tipps & SecurityWindows-Update beschädigt wichtige Datenrettungsfunktion(22.09.2026 um 09:04 Uhr)
Sichere ProgrammierungBuilding an Accessible Ecommerce Product Page with WCAG 2.2(22.09.2026 um 03:39 Uhr)
Sichere ProgrammierungGet Your Website Protected in 10 Minutes with SafeLine WAF(22.09.2026 um 08:42 Uhr)
Sichere ProgrammierungIntroduction to SPRINGBOOT(22.09.2026 um 08:42 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Dealing with slow page loads

Recently I encountered a slow loading page again ... I did manage to pull the load time to a decent time. I am sharing my findings on my page and the fixes I applied. Know what is slowing it down Dont make assumptions, measure…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Recently I encountered a slow loading page again ...

I did manage to pull the load time to a decent time.



I am sharing my findings on my page and the fixes I applied.






Know what is slowing it down



Dont make assumptions, measure it and check.

I loaded the page and used chrome developer tools to check what was slowing it down






My findings




  1. Too many requests to my express server - At a time Chrome will open about 6 connections to a domain/ip and the rest of the requests to the same domain will be queued

  2. Slow APIs (Adding to #1)

  3. Some CSS and Images served from the server (Adding to #1)

  4. Geography - I used browserstack and accessed it from different regions and I found some apis to be slower from geographies far away from my region

  5. Big chunk sizes (ReactJS + Webpack)






Steps I took to remedy these




  1. Low hanging fruit move all CSS and images to a CDN like cloudfront or cloudflare

  2. Slow APIs - Some APIs were serving the same data to all users. This data was periodically updated. I created a static json for these and hosted these on the CDN.

  3. Slow APIs - Tweak my DB query which was serving some data unused by the clients.

  4. Big chunk sizes - Removed unused imports, components not needed on the first render imported them dynamically, applied a terser in the webpack, enabled compression in express server
    (Separate post on this coming up soon)

  5. Slow APIs - It might be worth looking at moving some APIs to AWS Lamda so that they can be served well in all regions

  6. The smaller chunk sizes helped overall with the other geographies and also data on the CDN helped load the page faster on the other geographies






Key Takeaways




  1. Measure before you fix

  2. Cache where necessary

  3. Dont serve un-needed data in your APIs

  4. Apply compression to outbound data in express

  5. Look at webpack tuning

  6. Look at chunk sizes - refactor code + look at unused and dynamic imports

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Dealing with slow page loads

Thematisch verwandte Begriffe: Dealing, with, slow, page · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-55210 | Joplin is an open source note-taking and to-do application that organise…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick