Merge pull request #481 from jacobherrington/patch-1

rephrase section describing old JavaScript code
This commit is contained in:
Ilya Kantor 2018-08-30 13:42:29 +03:00 committed by GitHub
commit cd70475e31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ Comments before and after scripts.
//--></script>
```
These comments were supposed to hide the code from an old browser that didn't know about a `<script>` tag. But all browsers born in the past 15+ years don't have any issues. We mention it here, because such comments serve as a sign. If you see that somewhere -- that code is probably really old and not worth looking into.
This trick isn't used in modern JavaScript. These comments were used to hide the JavaScript code from old browsers that didn't know about a `<script>` tag. Since browsers born in the last 15 years don't have this issue, this kind of comment can help you identify really old code.
## External scripts