1

Something weird appears on a website I developed. Page content is loaded in 5 or 6s, but the DOMContentLoaded and Load Event actually fires after 1m 10s.

enter image description here

When I reload page during loading it loads fast. Any hints welcome !

EDIT: I disabled soundcloud API call, and I'm still in troubles. Server error logs are empty.

Here is a link to the website.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Vivoo
  • 11
  • 6

1 Answers1

0

The DOMContentLoaded event is fired when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.

After the DOM Content is loaded, images, scripts, fonts, etc still need to finish loading.

For more information on the difference between DOMContentLoaded and Load events check out: Difference between DOMContentLoaded and Load events

There lots of ways of improving this events timings.

Checkout out page speed best practices: https://developers.google.com/speed/docs/insights/rules

You can even use the chrome extension tool to help you out. https://developers.google.com/speed/

Community
  • 1
  • 1
andybeli
  • 836
  • 7
  • 14