1
I have a jquery script to automatically remove a class from a div if browser javascript is enabled.
<script type="text/javascript">
$("#scriptT").removeClass("noscript");
</script>
But for this I need to import jquery (obviously), however this import causes conflicts with other things of the site that is done with primefaces (for those who do not know the primefaces already has the built-in jquery). And you can’t use the first faces jquery because on this specific page there are no primefaces components, which makes the jquery not imported (as I’m using facelets, the import links go all in the template, therefore all pages matter).
Anyway, can you replace this script with one in pure Javascript? remembering that it has to be automatic when initializing the site, without having to press any button.
The #scriptT id is in the div that I remove the noscript class
I edited my answer.
– Diego Vieira