Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Will insertBefore show it IMMEDIATELY? Date: Thu, 05 May 2016 10:16:58 +0100 Organization: A noiseless patient Spider Lines: 16 Message-ID: <87d1p0vp85.fsf@bsb.me.uk> References: <9f3351d4-6b6a-46f3-b086-41f39990ab7b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="27099"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185JWFfzXwdmZkVuPhq7mM+4UTocJ4HbyY=" Cancel-Lock: sha1:9FkFn1RIkn99FAGMDA1lc4mGuVU= sha1:ITHQv5lkLW1O3YN5CjZwKbsnMWY= X-BSB-Auth: 1.c45763a7d5b578c29738.20160505101658BST.87d1p0vp85.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:30397 bit-naughty@hotmail.com writes: > My question is, if I use this, as instructed: > insertBefore(newChild, > refChild) method. > > Then will the element show up right away? > I DON'T want it to, I want it to remain invisible till I fiddle with > it's CSS properties.... Make sure that the initial properties render it invisible. Make it visible (by whatever means you are using -- the position, visibility or display properties) only when it is ready to be seen. -- Ben.