JS:ScriptIP-inf(Trj) message blocked...what does this mean? HELP

When posting of Facebook I got an Avast alert that a virus fromn JS:ScriptIP-inf (Trj) was blocked. I thought that Avast caught the problem but I did notice a new tab was opened at the top and it had a long message "mainredir2.global.ssl.fasly.net. I seleced that tab to see what was up and saw a message saying the site was no longer available.

Is my computer protected with the FREE Avast or already infected? I have it on 2 machines now-both while posting items for sale in the Facebook Marketplace and answering questions through FB messenger. Very frustrating because I need a laymans explaination not technical advice. Thanks!

As avast said, it blocked a java script from a website

I also got a message that Java needs to be updated…is that legit or linked to this issue? Do you think we need to order the Avast Premium protection? I’m just an individual not a business and computer is just for family use

There are fake java install popups out there …

Verify java https://www.java.com/en/download/
This link may be wrong since I do this from android, if so just Google verify java version

And no I don’t think you need to buy premium

Thanks so much!!!Great that you guru’s will help a technologically challenged novice