Hi @paulgpetty,
Thank you for drawing our attention on site performance wrt jQuery libraries. I’m figuring out how to achieve part of it with CSS transitions fired up by a bit of JS, but for controlled scrolling as we have it with footnotes, I see no alternative.
Best regards.
You can ditch JS for scrolling, check out:
https://caniuse.com/?search=scroll-behavior
The catch is that for IE11 & Safari the links wouldn’t animate … very small price to pay for no JS.
Thank you for this resource and the hint. When I tested smooth scrolling it didn’t work. On the other hand, too slow smooth scrolling tends to waste visitors’ time for no benefit when scrolling directions are anticipated. One main advantage is the scroll offset, but that can be achieved with pure HTML/CSS.
We’re receiving opposite user requests too, because HTML scrolling to fragment IDs, be it from footnotes or from TOC and others, is logged in the browsing history and prevents the back-button from working efficiently when the goal is to go back to the previous page. I wasn’t aware when adding hyperlinks to referrers and backlinks, now removed for upcoming v2.0.4. I’d guess this browser behavior could make it to a setting.
@paulgpetty
Now Footnotes will be coming with an option to not load any script, and to display CSS-animated tooltips fired up by a few lines of JS. Unlogged, animated scrolling still works, at least when I check it. As a preview, our current development version 2.1.1d10 is available at https://downloads.wordpress.org/plugin/footnotes.zip
Zero jQuery loaded by the plugin, still fully functional so far.
This option is available under Customize > Mouse-over box > Use alternative tooltip implementation -> Yes.
Thank you again for your advice!
Hi @paulgpetty thanks for your input and @pewgeuges thanks for tending to the topics brought up.
@paulgpetty thank you for rating the plugin. Would you consider changing it after the latest developments?
Best wishes,
Mark
Hi guys, just a heads up that I’m going to try because I read the above, but wouldn’t be if I hadn’t. Get this info out in front!