mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-18 12:05:59 +00:00
Critical fixes: Cache busting + Remove throttling + Ensure correct defaults
1. Browser Cache Fix: - Added ?v=4.0 to main.js to force browser reload - This ensures new comparison/waterfall UI loads 2. Remove ALL Throttling: - Disabled Lighthouse network throttling (rttMs=0, throughput=0) - Disabled CPU throttling (cpuSlowdownMultiplier=1) - Set throttlingMethod to 'provided' (no simulation) - Applies to both mobile and desktop tests 3. Backend Default Already Fixed: - isMobile defaults to false (desktop) matching frontend This fixes all 3 reported issues
This commit is contained in:
@@ -157,7 +157,10 @@
|
|||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="main.js"></script>
|
<!-- Git Badge Scripts global must be before main -->
|
||||||
|
<script src="git-badge.js"></script>
|
||||||
|
<script src="breakdown.js"></script>
|
||||||
|
<script src="main.js?v=4.0"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@@ -100,6 +100,15 @@ async function _executeTest(url, options) {
|
|||||||
screenEmulation: isMobile
|
screenEmulation: isMobile
|
||||||
? undefined // Uses default mobile emulation
|
? undefined // Uses default mobile emulation
|
||||||
: { mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false },
|
: { mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false },
|
||||||
|
throttling: {
|
||||||
|
rttMs: 0,
|
||||||
|
throughputKbps: 0,
|
||||||
|
cpuSlowdownMultiplier: 1,
|
||||||
|
requestLatencyMs: 0,
|
||||||
|
downloadThroughputKbps: 0,
|
||||||
|
uploadThroughputKbps: 0
|
||||||
|
},
|
||||||
|
throttlingMethod: 'provided'
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user