jSwtch Posted November 22, 2018 Share Posted November 22, 2018 Hello, I want to make a static site that uses pixi to render some graphics. However, I don't want to load the library on mobile devices. I only want to graphics to appear when a screen size is some min width, and I don't want any overhead for the smaller devices. I use Hugo for static site generation. How would I implement this condition? Quote Link to comment Share on other sites More sharing options...
xerver Posted November 22, 2018 Share Posted November 22, 2018 Conditionally load the pixi.js file and the code that draws your graphics based on some JS on your page that does your detection? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.