0

My webpage has a lot of javascript files (about 100). Evry single file is loaded fine, except of that one: <script src="javascript/tinymce/tinymce.js" type="text/javascript"></script>

When I add this line, page is loading about 5 minutes and then, tinymce is not loaded. I tried open source code of that file in browser, but tinymce.js is loading to unlimited. No errors shown.

Path to file is right, because I tried to acces other files (tinymce.dev.js, tinymce.jquery.dev.js...) and everything is loading right. File name is same as in source code.

Any suggestions?

Patrik Krehák
  • 2,595
  • 8
  • 32
  • 62
  • it's time to start thinking about RequireJs :) – Holybreath Apr 14 '14 at 07:52
  • You could try and put something simple like `console.log('tinymce.js');` in a file of that name, and see if that loads.. If it is, then may want to look at something WITHIN that file being wrong.. – WORMSS Apr 14 '14 at 07:52
  • Can't you concatenate all that file or at least some of them? It's definitely too much. – Elon Than Apr 14 '14 at 07:52
  • @ElonThan I can't, because its not my site, I am only repairing some bugs. And note: after 5 minutes loading, console says: `GET http://localhost:8102/editor/javascript/tinymce/tinymce.js net::ERR_CONNECTION_RESET localhost/:55 Resource interpreted as Script but transferred with MIME type text/plain: "chrome-extension://bfbmjmiodbnnpllbbbfblcplfjjepjdn/js/injected.js". content.js:31 (anonymous function)` – Patrik Krehák Apr 14 '14 at 07:55
  • @debute I would have thought it would be a good idea to include that information in the question... – CodingIntrigue Apr 14 '14 at 07:56
  • @debute Error itself has answer – Voonic Apr 14 '14 at 07:56
  • So what does it mean Script but transferred with MIME type text/plain? – Patrik Krehák Apr 14 '14 at 07:59
  • Why do you have so many JS files? – putvande Apr 14 '14 at 08:15
  • Its firm project and a whole page is working on javascript. Also, other subpages are using only some od them. And also, we have overview, because I am not single one programmer on this project. – Patrik Krehák Apr 14 '14 at 08:20
  • http://stackoverflow.com/questions/3467404/chrome-says-resource-interpreted-as-script-but-transferred-with-mime-type-text – Sonata Apr 14 '14 at 08:55

1 Answers1

0

I found out, where problem was. ESET Antivirus 7 blocks internet connection and then files with size more than 256kB won't show. So, in ESET:

  1. Advanced setup (F5)
  2. Web and email
  3. Web access protection
  4. URL address management
  5. And added these addresses: *127.0.0.1* and *localhost*
Patrik Krehák
  • 2,595
  • 8
  • 32
  • 62