k6
k6 copied to clipboard
Support loading all assets
Should be an optional flag.
- images
- css
- javascript
- fonts
- favicons
- .svg
const assets = response.html().find('[src*=""], [href*=".js"]').toArray()
http.batch(assets);
@kevinohashi Does it make sense to fetch these as well to simulate more realistic traffic? I assume 99% of this will be cached by a CDN.
I think so, people want to see CDN performance too. The closer to reality the load test, the better imo. Having it as a flag makes sense.
Btw consider to include full page loading flag. One example :
Woocommerce shop or blog have 100 additonal websites/product-sites.
Wp.js or woocommerce.js should drive all these pages sequentialy or equally with flag --full-seq or --full-eq