Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder7.news.weretis.net!news-peer.in.tum.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Calling an include file by using JavaScript ? Date: Tue, 19 Nov 2019 11:37:32 +0100 Lines: 27 Message-ID: References: <9bab4aea-6cd1-4c20-a953-8f02509189af@googlegroups.com> <87d0dqi37t.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net aacWLErb3F1HBP5sHGivRANnyvZyyGNldnTt4z4nZSRthvbchy Cancel-Lock: sha1:0ZWIeFB7EzLsChw5pvq3t/1hvsw= In-Reply-To: <87d0dqi37t.fsf@bsb.me.uk> Content-Language: en-US Xref: csiph.com comp.lang.javascript:37810 On 17.11.19 22:48, Ben Bacarisse wrote: > dr.j.r.stockton@gmail.com writes: > >> I have many local pages with the following line in the HEAD >> element : >> >> >> I want to add some constant Javascript to each of those pages; >> I could do it by putting next a line : >> >> >> Can I get the same inclusion, with a little respectable >> standards-compliant code, by putting a bit more script in C.js ; >> and if so how? > > If you can rely on them being supported, ECMAScript modules are probably > the way to go. Also see here: -- Arno Welzel https://arnowelzel.de