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

203
Vistas
Async or defer (or delay) CSS load

I'm working on my site speed score and trying to improve my Pagespeed (Remove unused CSS report).

First I have followed this page: load CSS simpler and I have deferred the following way but page speed keeps alerting me that the /css/second-style CSS file is not deferred:

<link rel="stylesheet" href="/css/second-style.css" media="print" onload="this.media='all'">

So, I have tried another way, using: loadCSS, I have done it this way:

<script src="loadCSS.js"></script>
<script>
  loadCSS( "/css/second-style.css" );
</script>

I think the two ways of doing it are quite clear and simple, and they are supposed to work but page speed does not approve /css/second-style.css.

Any idea if in 2021 it has to be done differently or what is my mistake? Is there another way to delay the CSS load?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Even though u load the CSS last or in the beginning the total load time will be the same.. Try minifying CSS and make it single file(There by reduce the number of request)

To increase speed more you can also try Compressing JavaScript and HTML and also Image sprit

over 4 years ago · Santiago Trujillo Denunciar
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