I'm using $.get to preload Mustache templates, which are stored as html files on the server:
$.get('/templates/template1.html');
$.get('/templates/template2.html');
When I need to render HTML using a template, I use $.get again to retrieve the HTML and render it.
Each time I request the cached template, a 200 response is of course received and the browser retrieves the file from cache.
I'm just wondering if there's any negative performance impact of retrieving from the browser cache - should I be storing the template content in a global Javascript variable instead?