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

109
Vistas
code splitting a responsive mobile landing page

So we have a huge app that is supposed to run on desktop and widescreen devices however when somebody connects through a mobile/tablet device or small desktop window (600px and under), we want to display a landing page to urge the user to download the mobile app, Discord are using this same technique.

How to make it so on mobile view the app won't load all those npm packages used on the web version knowing that the landing page is almost all in html and css with so little JavaScript.

Here is what I'm doing using tailwind

<Gate>
<WebApp className="hidden lg:block">
...
</Webapp>
<MobileApp className="block lg:hidden">
....
</MobileApp>
</Gate>

What is a better approach ?
Thank you

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