I have a simple HTML page that is attempting to access both remote and local JavaScript files:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="https://js.arcgis.com/3.19/"></script>
<script src="SearchExtent.js"></script>
<script>
require([
...
SearchExtent.js is stored in the same folder as the HTML page.
When debugging the HTML page both in Chrome and Edge, a 404 error occurs indicating that the following resource can't be found:
https://js.arcgis.com/3.19/SearchExtent.js
Why is the browser looking on the remote service instead of the local filesystem>