• Dawid

    (@dawidglobalsense)


    Hi!

    I have a problem with the new “preload links feature” as it throws javascript errors upon links without “href” attribute, also the same issue persists if the “href” value is not an absolute/full URL:

    Uncaught TypeError: URL constructor: /support/ is not a valid URL.

    or

    Uncaught TypeError: can’t access property “value”, e.target.attributes.href is undefined

    W3C says, in HTML5, an a element without href attribute is still valid and it’s considered to represent a placeholder hyperlink: https://www.w3.org/wiki/Elements/a

    I guess the new preload links feature needs an additional validation to check whether the “a” element contains a valid link.

Viewing 1 replies (of 1 total)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Hi
    Basically, preload features apply to the valid link. When a user hovers a link for more than 150ms, then prefetch will be enabled for that link and the page cache will be created as soon as possible so that when the user clicks the link the cache for that page is already created.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue with preload links feature’ is closed to new replies.