|
|
|
|
|
by zaius
4837 days ago
|
|
Respectfully disagree with point 3 - "Doing unnecessary XHR requests on page load". It's better to have your main app page completely static so it can be cached. That said, don't use ajax either - load the initial data via its own script tag. |
|
Someone in the comments there mentioned a nice alternative to embeddding the data in a <script> tag to avoid the problem jashkenas raised (</script> in the JSON). Namely, setting it in a data- attribute.