my blog https://overreacted.io
53
fork

Configure Feed

Select the types of activity you want to include in your feed.

typo

+1 -1
+1 -1
public/functional-html/index.md
··· 955 955 956 956 That makes this format particularly great for server-side caching. In the earlier years of server rendering, it was common to cache HTML "partials" in cases where some parts of the screen can be reused between the requests. In particular, it's nice when you can cache partials with *holes*--static shells with dynamic content. Unfortunately, dynamic HTML with `<script>` tags and data makes this kind of caching very difficult to pull off because you can't "unscramble" data from code. 957 957 958 - However, the structure above preserves a clear separation between data and code. It says--"here's are the tags, and here is the rich information that needs to be passed to them". Static and dynamic content is expressed in the same exact way. This means that such pieces of JSON are independently cacheable and can have "holes" in them that allow more often-changing content to be inserted later. 958 + However, the structure above preserves a clear separation between data and code. It says--"here are the tags, and here is the rich information that needs to be passed to them". Static and dynamic content is expressed in the same exact way. This means that such pieces of JSON are independently cacheable and can have "holes" in them that allow more often-changing content to be inserted later. 959 959 960 960 --- 961 961