Does VirtualBox limit the size of a .js file that can be included from a shared folder?

This question may belong to SuperUser, but I will try it here anyway, because I suppose some web developers might come across this strange behavior.


When testing the site for compatibility with IE8 / winXP on VirtualBox, I run a strange problem $ is undefinedthat is caused by the fact that jQuery (and jQuery UI) do not turn on when it refers to a relative path that resolves the file:///URL. Apparently because their size was too large (above 200 KB).

Just replacing the links to these 2 large files with http://, I solved the problem for me.

But the question is: why did this happen?

is this the wrong configuration? Bug? famous design decision?


More details:

  • VirtualBox 4.1.8
  • host os: win7 64bit, guest os: xp sp3 32 bit
  • guest add-ons were added, the page was launched from the VB shared folder.
  • the error appeared in all browsers (even in an opera that ignores security settings, afaik)
  • those. default configuration
  • The script was included as follows: <script type="text/javascript" src="js/libs/jquery/jquery-1.7.2.js">
  • The exact size limit has not been deducted.
+3
source share
1 answer

First question: in which zone is IE used to load this HTML file? Look in the lower right corner of the IE window for something like "My Computer" or "Local Intranet." Despite the fact that this question is present in other browsers, I am curious to know what IE sees your shared folder as.

, VirtualBox, - . IE ://URI , ...

.js ? jQuery, (, v1.3.2)?

, , -? , c:\drive?

VirtualBox 4.1.12? , , .

, jQuery , IE (, , ), script - , new ActiveXObject. , .js, . - , , .js , - , 400K - :

var a = "... really, really long string";
var b = "... another really long string";
...
+1

All Articles