I'm using CEF 2883 in a multi process setup inside of a Windows MFC application. I have registered a custom scheme handler and streaming the response data to the browser. The problem I'm running into is the situation below.
My HTML has a script tag in the head with a src attribute set to a javascript file. I get an "Undefined" error whenever I try calling a function that is defined in that .js file.
For Example
<html>
<head>
<script src = "foo.js"/>
</head>
<body>
<script>
bar(); //bar is defined in foo.js
</script>
</body>
</html>
Dev tools shows an error saying "bar" is undefined. Am I missing something obvious?