Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

104
Vistas
Speed up page loading with below scripts (dual language page)

I have the following scripts for dual language page (this is an overhaul of initial single-language webpage). What I am trying to achieve here if to change the words in HTML instead of using bulk edit function in Shopify or any other apps. However, if there are 1000s of them the webpage loading will be impeded seriously. Anyway to optimise it?

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>

<script>

if ( window.location.href.indexOf(".com/zh") == -1) {
  
  String.prototype.replaceAll = function(search, replacement) {
    var target = this;
    return target.replace(new RegExp(search, 'g'), replacement);
  };  
  
  
   $("div").html(function() { return $(this).html().replaceAll("steady", "安定");  }); 
   $("div").html(function() { return $(this).html().replaceAll("doctor", "医者");  }); 

  ;    
  
}

</script>

Thanks.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda