#Idea: A tool to extract, bundle, and inject #JavaScript and #CSS referenced on a web page at build time.
Imagine an #SSG toolchain whereby you render a page like:
```html
<html>
<my-comp>Some content.</my-comp>
<script src="/my-comp.js" type="module"></script>
<link href="/my-comp.css" rel="stylesheet">
<my-comp-2>Some more content.</my-comp-2>
<script src="/my-comp-2.js" type="module"></script>
<link href="/my-comp-2.css" rel="stylesheet">
</html>
```
Then you could run a tool and transform it to:
```html
<html>
<my-comp>Some content.</my-comp>
<my-comp-2>Some more content.</my-comp-2>
<script src="/all-scripts.js" type="module"></script>
<link href="/all-styles.css" rel="stylesheet">
</html>
```
This way you can render only the scripts/styles you actually need for a specific page and they will be implicitly used as entry points for bundled and optimized resources.
It's render-driven bundling!
