Scripts from the server
One of the main themes over the last couple of chapters, has been performance. That's not an accident. Whether you're sending AJAX requests to the client from the server, or sending script files from the server to the client—whether you're executing synchronously, or asynchronously—it's important to always consider "what impact will this have on the user experience, can I improve that, and (if not), is it worth it?"
Often, a few-millisecond delay in processing is well worth the added or improved functionality that a given script might add, but even so, it's important to consider whether there is a more efficient way to accomplish the same end-goal. Lag, or non-responsiveness, is a cumulative frustration. Below are a few ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access