Avada theme — JS script in site header
-
Hi,
As I am working on optimising my site, I came across an interesting issue. AWS inserts some incline code into page, obscured by using base64 encoding
https://www.hatsfromoz.com.au/bespoke-green-racing-fascinator-by-fillies-collection-2/
Now, I am not 100% sure if encoding is done by AWS or one of the optimisation plugins, but question is — why is that JS code is inserted into the head of the site?
Code adds even listeners, like
window.addEventListener(‘load’,function(){var awsSearch=document.querySelectorAll(“…
Being in the head, this JS becomes render-blocking. Is there a reason it can not be moved to the footer? Also, if it is AWS that does encoding, why???
Thanks
Rudolf
- You must be logged in to reply to this topic.