• MrGregWaugh

    (@mrgregwaugh)


    I just looked at the current version of new-tab.js, and it is 25KB. That’s larger than my entire site’s JS dependency load including ads.

    Correct me if I’m wrong, but doesn’t this just look for <a> tags with href’s that end in #new_tab, and add if so adds a ‘target’, ‘rel’ and ‘aria-label’?

    What else is this doing that requires the script to be so large?

    This isn’t meant to be critical of the authors of this plugin, because we’ve used it for a long time and found it to be greatly helpful. Just trying to understand if there is functionality or a dependency that we’re not clear about.

Viewing 1 replies (of 1 total)
  • Same thoughts here…

    I went ahead and removed / dequeued the new-tab.js and didn’t encounter any problems with the main functionality.

    Since it is minified (no source) it’s hard to make out what’s going on, missing comments etc.

Viewing 1 replies (of 1 total)
  • The topic ‘new-tab.js size’ is closed to new replies.