django-commons / django-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.
https://django-debug-toolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
8.08k stars 1.05k forks source link

What time measures the "domLoading" entry under the time panel? #1957

Closed tomdtp closed 3 months ago

tomdtp commented 3 months ago

I have a view which generates massive "domLoading" times in the time panel: grafik

However I cannot seem to find what this actually means? What part of my Django App is slow when this time is so high?

Thanks :)

matthiask commented 3 months ago

This is reported by the browser, see here: https://developer.mozilla.org/en-US/docs/Web/API/Performance

The data is collected here: https://github.com/jazzband/django-debug-toolbar/blob/main/debug_toolbar/static/debug_toolbar/js/timer.js

It basically means that your browser takes a long time to load the HTML resp. construct the DOM. Maybe your page is very big, or the server sends the HTML very slowly? Or maybe you have many assets which are required for a full page load? I'm not 100% sure.

tomdtp commented 3 months ago

Ah great, thanks. I didn't realize that Django Debug Toolbar also tracks client site performance.

Maybe this can be documented somewhere (or best maybe in a little info box on the page itself?!). Anyways, I am closing this here.