Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #34174

Dynamically load js files.

Newsgroups comp.lang.javascript
Date 2017-10-24 04:29 -0700
Message-ID <2d97db74-9dc2-4a99-bcf8-68944b7eef51@googlegroups.com> (permalink)
Subject Dynamically load js files.
From jonas.thornvall@gmail.com

Show all headers | View raw


Can you read in new js SRC files from javascript as you need them?
As i understand it all source files i loaded in the HTML header?

But if it was a big project and you wanted to group them, could you load a file that contain the group of the SRC js files you want to load?

Like a hierarki, it gets weird when there is more 10-15 js files to keep track.
Could you even load them dynamically using javascript? Well probably not.

Of course using frames there is no problem with such a hierarki, let them load eachother?

But i do not understand howto to it using div.


I understand if you find the question confusing, but how can i load a js SRC file on demand or a file that holds many <SCRIPT SRC=""> tags dynamically?


Must i really load a new HTML file "something like in a hidden frame"?

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Dynamically load js files. jonas.thornvall@gmail.com - 2017-10-24 04:29 -0700
  Re: Dynamically load js files. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-10-24 15:00 +0200
  Re: Dynamically load js files. Dr.Kral@nyc.rr.com - 2017-10-24 12:48 -0400
    Re: Dynamically load js files. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-10-25 00:09 +0200
      Re: Dynamically load js files. John G Harris <niam@jghnorth.org.uk.invalid> - 2017-10-25 15:18 +0100
        Re: Dynamically load js files. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-10-25 17:27 +0200
          Re: Dynamically load js files. John G Harris <niam@jghnorth.org.uk.invalid> - 2017-10-26 19:56 +0100
            Re: Dynamically load js files. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-10-26 23:06 +0200

csiph-web