Hi,
I am using GP with Ezoic. I enabled “script delay” option on Ezoic to improve LCP and it works. But only “/generatepress/assets/js/navigation-search.min.js?ver=3.0.3” still marked as “avoid chaining critical requests”. I contacted Ezoic support team and they told me “There are some Generate Press theme settings which can’t be fully optimised by Ezoic because of the way they’ve been configured by Generate Press, so for example Ezoic can be delaying these scripts but if GeneratePress are layering other settings on top of that then the optimisations Ezoic is doing for this script may not work optimally”
I would like to know why this js is different from others? It seems Ezoic add an attribute “type=text/ez-screx” to delay the script.
that script is enqueued like all other scripts in GP. I am not sure how Ezoic is applying there code but if it works for the other theme scripts there is no reason it should not work for that one.
Hi David,
Yes it looks weird. Can I add the attribute “type=text/ez-screx” to navigation-search.min.js manually? I tried to use script_loader_tag but not worked.