Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!