XenForo does use the 3rd party library
This library is loaded on every page, weighs in at about 10.000 bytes of JavaScript (uncompressed) and uses rather complicated "hacks" (by using
By now, all major browsers (eg. Chromium based browsers, Firefox, Safari on MacOS and iOS) support the required
As I'd expect this functionality to be used rather seldom, it would be nice to get rid if that lib and just use the native API.
While this would mean that the copy to clipboard button/link would not longer be available for IE users, I think the reduced overhead would be worth it.
Clipboard.JS
to provide copy to clipboard functionality for share controls on supporting browsers.This library is loaded on every page, weighs in at about 10.000 bytes of JavaScript (uncompressed) and uses rather complicated "hacks" (by using
execCommand
) to access the clipboard.By now, all major browsers (eg. Chromium based browsers, Firefox, Safari on MacOS and iOS) support the required
writeText
call of the modern Clipboard API
.As I'd expect this functionality to be used rather seldom, it would be nice to get rid if that lib and just use the native API.
While this would mean that the copy to clipboard button/link would not longer be available for IE users, I think the reduced overhead would be worth it.
Upvote
11