Mandatory text! plugin and download timeout

I use text! the plugin with RequireJS and Firefox seems to hate my text templates. My code seems to work fine in Chrome and Safari. Here is the error I am getting.

Error: Load timeout for modules: text!templates/a.html_unnormalized2, text!templates/b.html_unnormalized3, text!templates/c.html_unnormalized4, // _unnormalized# <- What is this? ... text!templates/n.html, // I don't see _unnormalized here... why? text!templates/o.html, text!templates/p.html, ... http://requirejs.org/docs/errors.html#timeout 

First, what does the designation _nnormalized # mean? It seems to be appending to the file name for some of my templates, but not for all. However, all of my templates are indicated in the error message.

Looking at the Net Inspector, he seems to be loading the necessary template files.

+6
source share
2 answers

I think I understood some of the mystery, although I'm not sure about the details. I noticed that this error occurs when I use Firebug and in the console settings, ShowXMLHttpRequests is enabled. When this option is disabled, the page loads without a hitch.

Do you guys think this is a Firebug issue? Or a requireJS question? I would like to understand why this is happening.

+3
source

In my case, if I just turn off the β€œScript” tab of FireBug, I no longer have freeze or timeout errors.

Firefox 27.0.1 Firebug 1.12.7

0
source

Source: https://habr.com/ru/post/921065/


All Articles