<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: paul-irish</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/paul-irish.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2022-03-08T21:13:39+00:00</updated><author><name>Simon Willison</name></author><entry><title>lite-youtube-embed</title><link href="https://simonwillison.net/2022/Mar/8/lite-youtube-embed/#atom-tag" rel="alternate"/><published>2022-03-08T21:13:39+00:00</published><updated>2022-03-08T21:13:39+00:00</updated><id>https://simonwillison.net/2022/Mar/8/lite-youtube-embed/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/paulirish/lite-youtube-embed"&gt;lite-youtube-embed&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Handy Web Component wrapper around the standard YouTube iframe embed which knocks over 500KB of JavaScript off the initial page load—I just added this to the datasette.io homepage and increased the Lighthouse performance score from 51 to 93!

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://github.com/simonw/datasette.io/issues/93"&gt;datasette.io/issues/93&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/iframes"&gt;iframes&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/paul-irish"&gt;paul-irish&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/youtube"&gt;youtube&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/web-performance"&gt;web-performance&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/web-components"&gt;web-components&lt;/a&gt;&lt;/p&gt;



</summary><category term="iframes"/><category term="paul-irish"/><category term="youtube"/><category term="web-performance"/><category term="web-components"/></entry><entry><title>Automate firing of onload events</title><link href="https://simonwillison.net/2008/Jan/17/glibness/#atom-tag" rel="alternate"/><published>2008-01-17T16:08:43+00:00</published><updated>2008-01-17T16:08:43+00:00</updated><id>https://simonwillison.net/2008/Jan/17/glibness/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://paul.irish.aurgasm.us/2008/automate-firing-of-onload-events/"&gt;Automate firing of onload events&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Paul Irish suggests setting up your site’s onload handlers in a single external JavaScript file then executing different handlers depending on the body element’s id attribute.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/onload"&gt;onload&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/paul-irish"&gt;paul-irish&lt;/a&gt;&lt;/p&gt;



</summary><category term="javascript"/><category term="onload"/><category term="paul-irish"/></entry></feed>