-
Notifications
You must be signed in to change notification settings - Fork 6
AMP compatibility mode #48
Comments
\o/ |
Yet CSS tooltips are only part of the solution. The plugin also needs AMP script to expand (and collapse) the reference container, because this is triggered mainly by the first click on a footnote referrer. Moreover, two bugs have been reported shortly after, requiring bugfix releases 2.5.7 (2021-02-27) and 2.5.8 (2021-02-28). As stated in #50: “The plugin is still so buggy it would be shameless to submit it to AMP-WP as-is even after adding AMP compat.” |
You may not need to use |
A pure CSS-based solution could also be to make use of the |
Thank you;
The target is a single footnote number in the list, that is being scrolled to and I see we can have smooth scrolling with the |
It seems the AMP attributes are getting added to non-AMP pages too, in case the site has transitional or reader mode user may find some issues eg: check "References" on non-AMP page This can be easily fixed by doing additional check in MCI_Footnotes->register_public if ( did_action( 'wp' ) && function_exists( 'is_amp_endpoint' ) ) {
self::$a_bool_amp_enabled = is_amp_endpoint();
} I didn't check the whole codebase but can you please let me know why we need an AMP compatibility checkbox and why can't we conditionally check for the AMP endpoint instead as most of plugins and themes do. |
Hopefully we’ll meet the looming deadline. Thanks for testing and I’ll be reaching out to AMP-WP, in issue #48 to begin with. git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2497474 b8457f37-d9ea-0310-8a92-e5e31aec5664
Bugs are now fixed except fade-in/fade-out. Hopefully we’ll meet the looming deadline. Thanks for testing and I’ll be reaching out to AMP-WP, in issue #48 to begin with. git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2497475 b8457f37-d9ea-0310-8a92-e5e31aec5664
this seems to be ready. Can someone please confirm? |
AFAICT, Pew has implemented the However, I'm unfortunately not able to contribute further on the AMP compat for ethical reasons. |
I'm honestly a fan of optimising load times and prioritising user experience. Apart from that, I opt for parking it and it's also ethically highly questionable. I can't remember asking for AMP compatibility or any of the users. |
@milindmore22 Excuse me please for failing to respond to your question #48 (comment) I missed the point of the AMP check. Unintentionally I got this plugin messed up. Then I got uneasy with this plugin and pulled out. Now it seems unfixable since 1 week ago I opened a PR #250 as @markcheret invited me to do when I left, but @markcheret does not respond any longer. @markcheret must be waiting for somebody else. |
After adding hard links in 2.3.0 (2020-12-31), Footnotes is now enabled to become fully AMP compatible thanks to @milindmore22 code contribution and @westonruter code contribution. This release is now fast-tracked and shall be followed by submission to AMP PROJECT / WordPress for testing.
[Description restored to its original state. Please see #issuecomment-797859947 for further information.]
The text was updated successfully, but these errors were encountered: