Hallöchen,
ich bin völlig neu auf diesem Gebiet und brauche mal Hilfe.
Ich habe zur Einbindung des Cookiebanners folgendes Script auf der Seite:
Code
<script type="text/javascript"> var date = Math.floor((Math.random() * 1000000) + 1);
(function() {
var scriptNames = [
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js",
"https://homepage/jscrips/script.js"
];
var linkNames = [
"https://homepage/css/style.css"
];
for (var i = 0; i < linkNames.length; i++) {
var link = document.createElement('link');
link.rel = 'stylesheet'
link.type = 'text/css';
link.href = linkNames[i];
link.async = true;
document.head.appendChild(link);
}
for (var i = 0; i < scriptNames.length; i++) {
var script = document.createElement('script');
script.src = scriptNames[i];
script.async = true;
document.head.appendChild(script);
}
})();
...
Alles anzeigen
Nun möchte ich die style.css noch mit "<link rel=preload>" versehen. Wo und wie füge ich diesen Zusatz mit ein.
Vielen Dank schon mal.