From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.60; helo=out.smtp-auth.no-ip.com; envelope-from=kevin@carhart.net; receiver= Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.60]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 89B7977AAF for ; Tue, 13 Mar 2018 19:19:54 -0700 (PDT) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 624C4362 for ; Tue, 13 Mar 2018 19:21:34 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id w2E2LXVs017916 for ; Tue, 13 Mar 2018 19:21:33 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id w2E2LXNu017913 for ; Tue, 13 Mar 2018 19:21:33 -0700 Date: Tue, 13 Mar 2018 19:21:33 -0700 (PDT) From: Kevin Carhart To: Edbrowse-dev@lists.the-brannons.com In-Reply-To: <20180213034852.eklhad@comcast.net> Message-ID: References: <20180213034852.eklhad@comcast.net> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Edbrowse-dev] DOMContentLoaded X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.25 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2018 02:19:54 -0000 > I read about DOMContentLoaded on the internet. It's good that we're encountering this. You definitely find it a lot in various pages' JS files. The fact that it would fire once suggests to me that it is part of the set that runs like a function. I had what I thought was a possible "aha" type of observation about the two event systems during the previous thread about events. But then I was wrong about "on" so I don't know if I'm on to something or not here, BUT: I think the ones that are handcrafted functions tend to be the ones that run a small number of times and you know in advance what they are. The ones that might be doled out dynamically and have new, made-up names that don't hew to a metaphor the way click does, are not going to be the ones that run like a function, because you don't know at compile time what they are. Based on this breakdown, DOMContentLoaded is probably "on the order of," same kind of animal as, onclick and onload. Older, more established, a hardcoded name, a fixed job that it does related to DOM. That's my educated guess.