One word: SEO
Alpine uses the dom so it’s perfect for public sites with anonymous users with mostly static content.
Makes google happy.
It’s not meant for GUIs.
Alpine uses the dom so it’s perfect for public sites with anonymous users with mostly static content.
Makes google happy.
It’s not meant for GUIs.
At first, I (incorrectly) thought you were saying that the alpine templates are stored "in the dom", so then google would parse them. For example:
<div> Copyright ©
<span x-text="new Date().getFullYear()"></span>
</div>But, once I figured out you were talking about progressive enhancement, I came back to reality that google will only see "Copyright (C) " and won't see "2023".
Note: I think it can be used for CRUD based GUIs, if paired with "Html over the wire" (rails hotwire, phoenix liveview, laravel livewire), but that's a different point.
[0]: https://searchengineland.com/tested-googlebot-crawls-javascr...