Sometimes when I browse some website and check its source using web-inspector (such as Chrome Inspect). I saw the <script>
tag or <link>
tag with some JS, CSS file, which are shown in the same directory / sub-directory. I can also use their full address to view these files. However, they are not shown in the inspector's Source tab. How do they do that?
For example:
You may see, although the js
file under js/
directory is included and can also be viewed in the browser, it's not shown in the source list on the left.
By the way, when I wrote some HTML with JS, they are all listed in the source tab.