Preventing double click. Should the CSS or javascript method be used here?

Inside Chrome when I tap on the SVG a few times, the bottom text becomes highlighted.

It doesn’t do it in firefox though.

Below are 2 methods that work, which of the two ways of doing it should I use?

https://jsfiddle.net/xeqtcp5k/103/

CSS Method:
https://jsfiddle.net/xeqtcp5k/116/

  <div class="noSel">
</div>
.noSel {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

Javascript Method
https://jsfiddle.net/xeqtcp5k/113/

    document.getElementById("button").addEventListener("mousedown", function(evt) {
        if (evt.detail > 1) {
            evt.preventDefault();
        }
    }, false);

Full Code:

(function iife() {
    "use strict";
    const player = document.getElementById("player");
    const button = document.getElementById("button");
    const value = document.getElementById("input");
    const sent = document.getElementById("sent");

    function playPauseIcon(play) {
        if (play) {
            button.classList.add("is-playing");
        } else {
            button.classList.remove("is-playing");
        }
    }
    button.addEventListener("click", function() {
        if (player.paused) {
            player.play();
            playPauseIcon(true);
        } else {
            player.pause();
            playPauseIcon(false);
        }
    });
    document.getElementById("button").addEventListener("mousedown", function(evt) {
        if (evt.detail > 1) {
            evt.preventDefault();
        }
    }, false);
    sent.addEventListener("click", function() {
        player.src = value.value;
        player.volume = 1.0;
        playPauseIcon(true);
    });
}());

You can use whichever way, that’s up to you…

IMO…I’d use CSS to reduce load times…but there may not be much of a difference. If you are worried about browser support you may want to use JavaScript

java script can be used