The part after the hash in the URL is known as the fragment identifier . If present, it indicates a part or position in a shared resource or document. When used with HTTP, it usually indicates the section or location on the page, and the browser can scroll to display that part of the page.
In relation to the JavaScript file, the author of the program most likely uses it as a method to pass arguments to the file. However, this method should not be used. URLs may contain query strings that serve the same purpose.
However, it is never recommended that you insert arguments into the URL of the JavaScript file, because for every other set of parameters the URL is cached again, which is a waste of memory. Instead, it's best to set the query string to the URL of the HTML page that contains the script itself. This is because JavaScript has a built-in property to access the query string on the web page: location.search . You can learn more about this here .
Aadit m shah
source share