HTML compression FAIL
-
I update a page that contains a script and it works until Cache for WordPress Performance compresses the HTML. Is there an option to not compress the HTML?
Script is :
<div class=”Cat_Servicios”>
<div class=”text”>Reglamento Europeo de Protección de Datos</div>
</div><div class=”Cat_Servicios”>
<div class=”text”>Aplicación LSSICE en E-COMER?</div>
</div><div class=”Cat_Servicios”>
<div class=”text”>Formación RGPD bonificable</div>
</div>
<script>
var slideIndex = 0;
showSlides();function showSlides() {
var i;
var slides = document.getElementsByClassName(“Cat_Servicios”);
for (i = 0; i < slides.length; i++) {
slides[i].style.display = “none”;
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = “block”;
setTimeout(showSlides, 3000); // Change image every 2 seconds
}
</script>
- The topic ‘HTML compression FAIL’ is closed to new replies.