We’re about to launch a playcanvas app and host it ourselves combined in a wordpress site. I’m in the process of optimizing performance. I’ve measured with the profiler but also with Chrome development tools on the networking tab. Brilliant tool indeed!
I got the app down to about 6 MB download for the client when on launch.playcanvas.com, however as soon as I launched it on my own service provider the size of individual assets bumbed a lot. Look at this particular json model for example:
Great, thanks! I’m chatting to my shared host support now. He says I should be able to enable it using .htaccess files only. Trying to figure out the code to use now. I wonder if it’s enabled broadly on all content types or If I need/should have to specify specific ones.
Darn, I can’t get this to work properly. I add the code listed in the link you provided (which is the same one.com support talked bout. However, when I add i to a the .htaccess file allready present (with some previous wordpress code in there) I get a 500 Internal server error
In the end I removed that Directory-tag and now I don’t get the error anymore. However, I’m not sure I get the compression either. I’ve tried a couple of other setups for .htaccess I found across the web including this one below. However, while https://checkgzipcompression.com/?url=http%3A%2F%2Fwww.simsmining.eu%2F reports I do have Gzip compression (which I allready got before changing anything in .htaccess), the fact remains that the app is a lot larger when hosted on one.com than on playcanvas. That 7MB for the json model compared to 1.5MB difference is still there when measured with the network tab/chrome development tools. What am I missing?