7 ms·
I've seen significant script delays from loading files on the server, before ever getting to the web browser. I.e. apparently the file server was on the network
by deadowl 11y ago
I've seen significant script delays from loading files on the server, before ever getting to the web browser. I.e. apparently the file server was on the network, but not the same machine as the web server. I was using Smarty as a templating engine, and I had a template for a table row that loaded many times during the rendering of a particularly long table. It literally was loading the file once for every time a table row had to be generated, and it came with a lot more overhead than I would ever expect.
I switched the include directive to inline for the table row, but I was using template directives that were not supported inline by the template compiler. In the end I had to add some code to the compiler in order to get a reasonable performance time (thank you open source).