Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

AMP idea sounds good but it does not convince me that it is mandatory to include amp.js via CDN. Why not via bower or other package manager?

I think the point is that amp.js will be preloaded anyway, so including it in your package manager means it is downloading content it already has.




I don't get your point, I'll try to explain better. I mean, instead of an amp.js link to a CDN, doing in my project

. bower install amp

and serving it statically from my server. Why not? Maybe cause Google want to create an audience of people using AMP on their devices.


Why not?

Because it's wasted bandwidth. AMP can easily intercept the CDNed version and serve a cached copy. If it's part of your bower build, it can't.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: