DEV Community

Discussion on: Rendering Different JavaScript files based on screen size

Collapse
 
hacker4world profile image
hacker4world

You can use window.innerWidth to check screen size then conditionally render file based on it