Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Will insertBefore show it IMMEDIATELY? Date: Sat, 07 May 2016 22:51:48 +0200 Organization: PointedEars Software (PES) Lines: 41 Message-ID: <2597183.QcWBBMbo8E@PointedEars.de> References: <9f3351d4-6b6a-46f3-b086-41f39990ab7b@googlegroups.com> <87d1p0vp85.fsf@bsb.me.uk> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1462654309 3111 eJwFwYEBwCAIA7CXZKVlnCMo/59gQsjU4aKcwznxV0bnduOZG9hYSPsCS15WhJi1bvURiHwR2BB2 (7 May 2016 20:51:49 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 7 May 2016 20:51:49 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQcBwEAIBDBL3LPlMIp/CU2UDTYupiZ6et49tJvn6YwrvNqhKe0UZgV/HQ8ZFHz5+r6SWNobbDvEf2fCFew= Cancel-Lock: sha1:pttETgjMZCwdWupa7jiLloeO3No= X-NNTP-Posting-Host: eJwFwQkBwEAIAzBNjJYDObz+JSyhmlg/GA08nmSazkxMQj71QtTuNfF6hfAJh7j5aLMufyxkEZ0= Xref: csiph.com comp.lang.javascript:30410 Steve L wrote: ^^^^^^^ Your “From” is in violation of network standards, Netiquette, and maybe even the Acceptable Use Policy of your service provider. You have been warned. > On Thu, 05 May 2016 10:16:58 +0100, Ben Bacarisse > wrote: Attribution line, not attribution novel. >>bit-naughty@hotmail.com writes: >>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. > > My experience is from several years ago so maybe things have changed. > IIRC updates to the document are not rendered until the current script > has finished Unreliable. The only reliable way to avoid additional repaint is to not insert the element object into the document tree before its CSS properties have been set. > or has suspended execution. Impossible. > In situations where I DID want the document to update immediately I had to > use a short setTimeout to pause execution. Still true, except that window.setTimeout() has never paused execution (that is a common misconception). Instead, code that is to run independent of window updates and would potentially block execution, is to be executed with window.setTimeout() or the Web Workers API. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.