HTML5 Canvas Responsive Scaling Faster

New Here ,
Jul 17, 2020 Jul 17, 2020

Copy link to clipboard

Copied

I am looking for a way to get the canvas to scale before it is fully loaded.

I made a game and it works perfect. The problem is that it takes about 4 seconds to load, and in the mobile version that implies that it first shows the original size and only once it is loaded does it scale and reduce to the width of the device. As it is on a responsive website, all content is flipped to accommodate the new canvas size and is not a good user experience.


Any help or suggestion will be welcome! Regards

Views

25

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation