-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move amp support to a plugin #2603
Comments
Can you please elaborate why it is bad for the web? I personally think it would be great if svelte has the amp support build in, as it is something used in front end websites. |
The short answer is that it's something invented by Google with the primary goal of helping Google gain even more control over more of the internet than they already have. |
Ahh yea i just found out: Thanks good to know! |
There are many articles about it available online if you'd like to read more: https://www.google.com/search?q=amp+bad+for+web |
I would love to get rid of built-in AMP support. AMP is flaming hot garbage. SvelteKit's AMP support consists of the following elements:
Most of this could be done in userland today, especially if we do #3511:
The last one is the only part that would need changes to Kit itself, I think. Proposal: if a page is rendered with We could then move the validation/boilerplate stuff to a separate package ( |
Another wrinkle we'll need to accommodate: #4073 |
Describe the problem
I don't like amp. It's bad for the web
Also, it slows things down a lot:
kit/packages/kit/test/utils.js
Line 161 in 6c9b739
Describe the proposed solution
Can we use hooks, vite plugins (https://www.npmjs.com/package/vite-plugin-amp), or do we need to add new extension points?
Also, we can potentially move some of the stuff to other options like the proposed
inlineCss
option (#2620), so that it's not AMP-specific.Alternatives considered
No response
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: