:confused: Problem with IE loading js file

2012-02-21  Source: Original Site  Category:JavaScript  Views:2 


My company's website has a js script implemented on all its pages for a specific task. This script sometimes slows down loading of the page for some users so
I wanted to load that file after the complete page is loaded so that the visitor on the site does not feel any problem. I found one solution which is working perfectly with firefox but it is causing "Operation Aborted" error with IE. Here is the code:

<script type="text/javascript">
var body= document.getElementsByTagName('body')[0];
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= 'Myfile.js';

if anyone could tell me the reason of error in IE then that would be great.

Related articles
  • :confused: Problem with IE loading js file 2012-02-21

    My company's website has a js script implemented on all its pages for a specific task. This script sometimes slows down loading of the page for some users so I wanted to load that file after the complete page is loaded so that the visitor on the site

  • Oracle Problem with Data load from file 2012-08-16

    if i try to load data from an comma seperated file into oracle, i get an error that the page cannot be displayed, after the dialog where to specify the file and the separation method. My Browser does not try long to open the page approx. 1 sec. ... A

  • Oracle Problem with SQL*Loader control file 2014-07-26

    I am using the following control file. Load Data infile * BADFILE xx_ds_po_upload_bad_file.bad APPEND INTO TABLE xx_ds_po_upload_hdr when (1) = 'HDR' FIELDS TERMINATED BY " " TRAILING NULLCOLS ( header_id "xx_ds_poupload_hdr_s.nextval" ,Supplier_Numb

  • Problem with jQuery .load() in IE 2012-04-28

    When clicked on link "1.stāvs"it doesn't load anything ands show error on line: 1 char: 1 error: syntax error. Could not complete operation due to error 80020101. Example page: http://saite.fyfi.net/lat/info/apskatit-kvartalu/silmalu-17/ http://saite

  • problems with importing a DLL file in VB 2013-04-27

    I am having problems with importing the Dll file from VC++ to VB. the Dll file has to take an input which is input into VB interface as a phrase and the dll file processes it to breka it into words and the words are to be displayed at the VB interfac

  • Ubuntu i have a problem with this make.sys file.??? 2013-08-30

    i have a problem with this make.sys file. I am getting this message after run make all make: *** No rule to make target 'all'. Stop. Kindly suggest me what to do?

  • Problem with New/Open/Save File in CDialog 2013-11-05

    I create application Dialog-based. I insert CDocument and CEditView by using CCreateContext, everything look fine. But I have a problem with New/Open/Save File. Please help me.:(

  • Problem with AOL "aolsoftware.exe " file 2014-11-18

    I had a problem with my AOL, the main.idx file became corrupt and I was informed by the AOL software to reinstall the hardware to fix the problem. I did this and now I have a problem with the aolsoftware.exe file. It keeps accessing my hard drive and

  • Ubuntu Grub Problem with chain load 2012-01-26

    My configuration is with two hard disks. Disk1 has windows and Ubuntu (50-50) and there is no problem with selection of either XP or Ubuntu 8.10. Disk2, also 50-50 has Fedora 10 on it using lvm I can chainload to the second drive, but during the boot

  • Ubuntu BIG problems wIth video and audio files 2012-10-26

    I am having some problems with playing audio and video files in Ubuntu...... when i play the video in mplayer...... i get an error message of which i have attached a screenshot when i play the video or audio in VLC/Totem..... the screen goes black an

  • Problem with IIS and PHP files 2012-12-08

    I'm having a problem with phpBB Forum software, but I think the problem is with IIS config for php, rather that phpBB itself. I have already a copy of phpBB running, but wanted to split the Forums into two separate 'boards'. So I created a folders D:

  • Oracle Problem with sql loader having row delimiter as "^" 2013-04-10

    I Had a problem with sqlldr while loading data into Oracle Data tables. Column Delimiter as "#" Row Delimiter as "^" Here below are the table script, control file and error encountered Table Script ---------------- CREATE TABLE "BACKUPPROCESS_EC" ( "

  • Ubuntu problems with AMSN, loading TkCximage failed 2013-06-22

    Hi! I'm having strange problems with aMSN. I had one installed by some script some time ago because the Ubuntu repositories didn't have the new version, but now they do, so I decided to install it from there... however, when I try to run aMSN, I get

  • Oracle Problem with SQL*Loader loading long description with carriage return 2013-09-09

    I'm trying to load new items into mtl_system_items_interface via a concurrent program running the SQL*Loader. The load is erroring due to not finding a delimeter - I'm guessing it's having problems with the long_description. Here's my ctl file: LOAD

  • Problems with dynamicaly loading JavaScript 2014-08-01

    Here's what I'd like to do using pure JavaScript and HTML (no Ajax or PHP): My website loads different JavaScript files dynamically which contain a bunch of data, that I will display on the website. The dynamical loading function is placed in the

  • Oracle Problem with SQL loader - "maximum length" 2014-10-12

    using SQL*Loader: Release =================================== (full CTL enclosed below) I have a problem with several rows, in which I'm getting the "Field in data file exceeds maximum length" error. the DB field (referer) is a VARCHAR2(400

  • Oracle Problem with SQL*Loader 2015-01-06

    There is a problem with the position of the column sys_creation_date. If it has the value SYSDATE then it is causing problems - it's position is moved ( it looks like to the end) If it has the value Date "YYYY/MM/DD" and a value at the position at th

  • Problem with finding ubuntu kernal file name for manual grub install into boot sector 2012-01-30

    Hello, I'm a complete newb face when it comes to Linux distro's overall, but I've always wanted to start becoming a linux head and learn about terminal scripting within ubuntu... I know all of the added advantages and what not when it comes to added

  • Ubuntu Problem with running an executable file 2012-01-30

    I am new in Linux environment, and I am trying to compile and run C programs through gcc compiler, and I face a problem with running an executable output file. I have compiled a very simple “C program” by using “gcc HelloWorld.c -o test.out” The resu

  • Ubuntu Problem with opeing data.cab files 2012-03-09

    I am new to Ubuntu, I just installed version 10.04 on my Dell studio 1749 and I have problems with installation of wireless drivers. I have tried to solve it by a few methods I found on forums, however it didn't help me so far. Now I am trying to dea