function appendSemantic() { const newLink = document.createElement('link'); newLink.type = 'text/css'; newLink.rel = 'stylesheet'; newLink.href = 'https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.css'; document.getElementsByTagName('head')[0].append(newLink) } appendSemantic()