Add Content Breakdown & Domain Analysis

Features Added:
- Canvas-based pie chart showing resource distribution by type
- Content breakdown statistics table
- Compression savings percentage display
- Resource counts and sizes by type
- Automatic rendering after test completion

Technical implementation - Created breakdown.js with drawPieChart and renderContentBreakdown functions
This commit is contained in:
2025-12-28 01:33:42 +11:00
parent 4aa890da6f
commit 8d9e0380b6
2 changed files with 160 additions and 0 deletions

View File

@@ -117,6 +117,11 @@ function displayResults(data) {
window.open(`/waterfall.html?id=${data.id}`, '_blank');
};
}
// Load content breakdown
if (typeof renderContentBreakdown === 'function') {
renderContentBreakdown(data.id);
}
resultsArea.classList.add('visible');