Support » Plugin: footnotes » Functionally great

  • paulgpetty

    (@paulgpetty)


    … but from a performance perspective not so good.

    I’d removed jQuery from my Theme, but this plugin depends on that.

    It also depends on jQuery UI & jQuery Tools … that’s a lot of JavaScript, for a small amount of functionality.

    Check Page Speed Insights with & without this activated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author pewgeuges

    (@pewgeuges)

    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.

    Thread Starter paulgpetty

    (@paulgpetty)

    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.

    Plugin Author pewgeuges

    (@pewgeuges)

    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.

    Plugin Author pewgeuges

    (@pewgeuges)

    @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!

    Plugin Author Mark Cheret

    (@markcheret)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this review.