Highlighted

DataXu-Tag: Resource interpreted as Script but transferred with MIME type image/gif

Rookie Contributor
Hi there! When loading a DataXu Tag on a page we see (only in Chrome) an error: > Resource interpreted as Script but transferred with MIME type image/gif: "https://tags.w55c.net/rs?id=xxxxxxx" followed by a: > Uncaught SyntaxError: Unexpected token ILLEGAL Having a look into the regarding file "utag..js" you can find: > u.s = document.getElementsByTagName("script")[0]; > u.scr = document.createElement("script"); > u.scr.type = "text/javascript"; // HERE the type should be "image/gif" > u.scr.src=u.base_url + c.join(u.qsp_delim); > u.s.parentNode.insertBefore(u.scr, u.s); Do you have any ideas how to solve this issue? Kind regards, Bastian
1 REPLY 1
Highlighted

DataXu-Tag: Resource interpreted as Script but transferred with MIME type image/gif

Employee Emeritus
Bastian, These two "errors" are independent of each other. The first is just a server warning. The script is returning a different response then what the server is expecting. The file will still load and run fine. The second (Uncaught SyntaxError: Unexpected token ILLEGAL) is an error. Somewhere in the file there is an error in the code. Is there a URL or can you send the utag.##.js reference so we can take a look?