fac-13 / ab-fac

Eade, Jennah, Nicos, Vanessa AbFACulous Team
https://fac-13.github.io/ab-fac/
1 stars 0 forks source link

Javascript script tag #28

Open lucymk opened 6 years ago

lucymk commented 6 years ago
<head>
    <title>Ab Fab Team</title>
    <meta name="UTF-8">
    <meta author="Eade, Jenna, Nicos, Vanessa" />
    <meta description="A site dedicated to our faboulous project team" />
    <meta name="robots" content="noindex">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="style.css">
    <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Bungee+Inline|Monoton" rel="stylesheet">
    <script src='script.js'></script>
</head>

In general, it's best not to put your js script in the head, because the browser will stop parsing your page to request your javascript file. This then blocks the loading of the rest of your page. As this is a small site, there's no noticeable lag, but for more info about best practice you can check out this Stack Overflow article :smiley: https://stackoverflow.com/questions/436411/where-should-i-put-script-tags-in-html-markup