Posted on 01/10/2021 18:56:06
Hi Jose,
Can you share the URL to that page?
what takes the most longest to load is this function
var producObject = productService.GetByProductIDs(productIds.ToArray(),true,"LANG1",true,true);
we iterate over this loop to render the custom products
I'd have to see the surronding code where this is being applied. Also if you're fetching related data within a list, you're bound to notice some performance issues, which are likely exponentional when you add even a single field to it. Even if DW performs within acceptable, rate, it's more Kb downstream and more markup for the browser and more elements for the browser to paint (css to process) - so if you're running into performance issues, consider if you're trying to simply do too much in the product list.
On the other side, our CLS is worst but is not relate with the products
You can problably fix this with css. It looks like the data you're getting back is taking up more real-estate than the css reserved. Check the rendered area and compare with the css styles. If you make the css take up the necessary space, CLS will drop to 0
About the render-block resources we have this:
Yeah, this is tricky, but you have some options:
- Add "&display=swap" to the google fonts request
- Check if you need the flag icons and fontawesome
- Try to defer all JS - may not work, but it's worth a shot
- Consider deferring some css - a trick is to change href to data-href and then have a deffered js that looks for <link> elements with data-href attributes and replaces them with href
These are just some quick notes on stuff you can do, but there's no magic solution for this in Rapido. We've done this for some customers and it does require some time and investigation. Hope it's enough to get you going.
Best Regards,
Nuno Aguiar