3 ms·
There is a very popular photoshop like application written entirely in JavaScript (not WASM) for the browser and performs well: Photopea. I have an app with a
by austincheney 6y ago
There is a very popular photoshop like application written entirely in JavaScript (not WASM) for the browser and performs well: Photopea.
I have an app with a full Windows/OSX like GUI and presents full file system controls in the browser like Explorer or Finder. This app also saves state on each interaction and allows state sharing across different browsers in real time of the same device. The fastest I have gotten this to load with full state restoration and content rendering and page paint is 0.32 seconds as measured using the Firefox performance tab from the developer tools. The largest part of that load time is rendering a 3mb background image.
People really want to believe JavaScript is slow. I have been writing JavaScript long enough to reason this down to two major concerns:
1. Developers do really ridiculously slow things in JavaScript either for convenience or insecurity and more than half the time will fight you to the death to qualify bad practices.
2. Developers are too reliant upon dependencies. It’s like going camping but taking everything plus the kitchen sink with you. Remember that scene at the beginning of Saving Private Ryan when Private Upham wants to bring his typewriter on an infantry mission deep into the front lines?