k6 icon indicating copy to clipboard operation
k6 copied to clipboard

Support loading all assets

Open tillkruss opened this issue 4 years ago • 3 comments

Should be an optional flag.

  • images
  • css
  • javascript
  • fonts
  • favicons
  • .svg
const assets = response.html().find('[src*=""], [href*=".js"]').toArray()
http.batch(assets);

tillkruss avatar Jan 04 '22 03:01 tillkruss

@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.

tillkruss avatar Jan 04 '22 05:01 tillkruss

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.

kevinohashi avatar Jan 05 '22 01:01 kevinohashi

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

osevan avatar Jun 18 '24 12:06 osevan