What takes longer to send from the server: images or JavaScript?

JavaScript in the image

Below is screenshot of some JavaScript

Now this browser will run optical character recognition and then will execute the recognized code

Uses ocrad.js library.

This repo at github.com/bahmutov/image-as-script. Font "Times Roman" was most reliably recognized. Demo requires a server to run, will not work from file:// protocol.

Recognized code