HTML5 file from Animate making web browsers crash
I've been working on a kind of animated interactive page that has navigation from frame to frame using basic HTML5 Canvas Timeline Navigation ActionScript. It only uses the Stop At This Frame action and Go To Frame and Play (among some basic transformation animations), nothing too complex, and yet when I publish my file it was over 3MB which I've been told is quite big for a HTML file. I went in a clear loads of blank lines in the script and made sure it was using spritesheets for the images etc and that helped reduce it down to 2.4MB. Yet still when I open it in Firefox I get through a couple of pages and then it crashes or just lags so much it's bordering unusable (I can only open it in Firefox because Chrome had awful security issues and wouldn't let me access local files).
Are there any ways I can easily reduce the file size/stop the lagging when I open it in a browser? I'm relatively new to Animate but didn't think I was doing anything that complicated/taxing on the software.