4 ms·
>> If you clone my blog[1] (with submodules) you should be able to host it exactly as-is from the repo. > Who would want to do that? Future me. Actually just
by anderspitman 7y ago
>> If you clone my blog[1] (with submodules) you should be able to host it exactly as-is from the repo.
> Who would want to do that?
Future me. Actually just today in order to publish this post I had to re-learn how I had set up my dependencies, so I switched it to submodules so it won't be a problem again.
> However if you want to optimize for subsequent page loads I suggest you do so without compromising your initial page load and completely without JavaScript by utilizing link prefetching [1] which is supported by all major browsers [2] except Safari.
Believe me, I spent a torturous amount of time trying to achieve the same results with static HTML+prefetching/preloading. First off, Safari is a huge number of users. Plus you can't include HTML from HTML, so this requires a build step (though I've been experimenting with a new tool[0] for mitigating that somewhat). Also, this doesn't allow maintaining state between navigations.
[0] https://github.com/anderspitman/tuplates https://github.com/anderspitman/tuplates
- egdod 7y agoStatic HTML publishing is a solved problem. Don’t reinvent the wheel. Don’t make me run random JS to display plaintext. Don’t justify said random JS with silly whizbang features that no one actually wants.
- deleted 7y ago[deleted]
- zzo38computer 7y agoIt has been fixed so that there is a work around now. At first it was just blank, but now there is a work around. So, you can use that.