Skip to content

Instantly share code, notes, and snippets.

@Jagathishrex
Created December 9, 2019 01:53
Show Gist options
  • Save Jagathishrex/bb0474097eb95671f491d8c3ea82ce57 to your computer and use it in GitHub Desktop.
Save Jagathishrex/bb0474097eb95671f491d8c3ea82ce57 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<script>
console.log("hi", document.readyState);
document.addEventListener('readystatechange',function (ev) {
console.log("statechange", document.readyState);
})
document.addEventListener("DOMContentLoaded", function(ev){
console.log("DOMLOADED", ev);
});
</script>
<script src="script.js"></script>
</body>
</html>
console.log("hi from script");
* {
color :red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment