dsifford / academic-bloggers-toolkit

WordPress plugin providing an all-in-one solution for effective academic blogging.
https://wordpress.org/plugins/academic-bloggers-toolkit/
GNU General Public License v3.0
121 stars 38 forks source link

AMP support #604

Open mmprep opened 4 years ago

mmprep commented 4 years ago

Hi Derek,

Your plugin is a brilliant, thank you very much!.

However, there is one problem: it doesn’t work on AMP pages. But Google AMP technology, designed to speed up the mobile web, is very and very popular. Moreover, the speed of the site is one of the key factors in its ranking.

Question: when do you plan to implement AMP support?

-- Dmitry

dsifford commented 4 years ago

Hi @mmprep... What specifically is not working on AMP? I assume the tooltips? That's not anything I can fix I'm afraid.

mmprep commented 4 years ago

The tooltips and bibliography list view/hide are not working in AMP. I would like to know why it is impossible to implement AMP support?

dsifford commented 4 years ago

By design, AMP does not run user-provided javascript. To be fast, AMP only takes the rendered content of pages and serves that. Those things depend on javascript to function.

mmprep commented 4 years ago

OK, but what about https://amp.dev/documentation/guides-and-tutorials/develop/custom-javascript/ and probably CSS methods?

dsifford commented 4 years ago

I'd have to investigate this more. Scanning that quickly, it still looks like there's some limiting factors that may outright block this from functioning even after following their rules (js size, run time, etc).

No idea as to when I would even be able to get around to this unfortunately.