SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Click to edit Master title style


           JavaScript and other elements
           Script Loading Case Study 2011




            Smart tags, smarter marketing

           CONFIDENTIALITY NOTICE: The information contained in this presentation is intended solely for the use of the
           attendee companies and contains information that is privileged, confidential and subject to copyright.
Purpose edit Master title style
Click to

  To explore the topics first raised by Steve Sounders in his book
  Even Faster Websites


  To understand how JavaScript interacts with other browser
  elements to cause performance issues


  To highlight browser improvements since Steve’s original book
  and explore the challenges created via dynamic script loading




                          Private & Confidential Copyright TagMan 2011
Methodology Master title style
Click to edit

 20 standalone test pages so far and rising


 Tests look at impact of coding elements into the HTML versus
 dynamic insertion by JavaScript


 Core JavaScript function takes a timestamp and loops until it is
 30 seconds later


 Focused on latest available browser – Firefox 5, Internet
 Explorer 9 and Chrome 12

                        Private & Confidential Copyright TagMan 2011
What we edit Master title style
Click to found


  Browsers have got a lot better since Steve’s book


  But they still can’t deal with dynamic script loading


  Asynchronous script loading is the way ahead


  Smart Loading can solve the problem until everyone goes async



                          Private & Confidential Copyright TagMan 2011
Click scripts Master title style
How to edit used to load
 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 3.5                                       IE7                                           CR6

                   Downloading       Executing            Onload event                DOM   Loaded



        • Browsers used to download scripts sequentially
        • Chrome was the first browser to download scripts in advance


                                        Private and confidential, copyright TagMan 2009
Click to edit Master title style
Syncronous script loading now
 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                        IE 9                                            CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • Browsers now look ahead and download what is in the HTML
        • Load times in FF & IE now match those of legacy Chrome


                                          Private and confidential, copyright TagMan
Click to edit Master title style
Asyncronous scripts don’t block
 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                               IE 9                                     CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • Chrome and Firefox support async scripts that do not block
        • Not guaranteed to executed in original order (see FF above)


                                          Private and confidential, copyright TagMan
Click to edit Master ones style
Neither do defered title
 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                         IE 9                                          CR 12
                   Downloading       Executing            Onload event                DOM   Loaded



        • Script defer is similar to async but only works in IE & Safari 4+
        • Scripts are loaded after DOM ready and executed in order


                                        Private and confidential, copyright TagMan 2009
Click to edit Master title style nice
But CSS and scripts don’t play
 4 external css (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                        IE 9                                            CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • Would expect above example to take 1s to “loaded”
        • FF5 appears to downloads CSS 4 & 6 twice


                                          Private and confidential, copyright TagMan
Click to edit Master title clock back
Dynamic load turns the style
 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                        IE 9                                            CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • Dynamically loading scripts prevents the browser preloading them
        • Performance is similar to legacy script loading, even in chrome


                                          Private and confidential, copyright TagMan
Click to edit Master titlework fine
Dynamic Async Scripts style
 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                        IE 9                                            CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • Dynamic appending of async scripts negates the issue
        • Results equivalent to native async script injection


                                          Private and confidential, copyright TagMan
Click to edit Masterin-line scripts
Dynamic CSS with title style
 4 external CSS (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                       IE 9                                            CR 12
                   Downloading      Executing            Onload event                 DOM   Loaded



       • Firefox performance when CSS inserted dynamically
       • IE & Chrome CSS blocks scripts and back to full blocking


                                         Private and confidential, copyright TagMan
Click to edit Master title style
Iframes are not good either
 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                        IE 9                                            CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • Iframes are the slowest HTML element to create & block partially
        • Big delays between loading and page completion, hard to render


                                          Private and confidential, copyright TagMan
Click to edit Master title style parallel
JavaScript is not executed in
 5 inline scripts, code blocks page for .5s




          FF 5                                        IE 9                                            CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • Async means run independently to other browser processes
        • But only one JavaScript process can execute at a time


                                          Private and confidential, copyright TagMan
Click Workers allow title style
Web to edit Master parallel scripts
 4 web workers, 2 inline scripts, code blocks page for .5s




          FF 5                                       IE 9                                            CR 12
                   Downloading      Executing            Onload event                 DOM   Loaded



       • Part of HTML5 spec, will be supported in IE 10 (Fall 2011)
       • Scripts execute independently of each other and Dom creation


                                         Private and confidential, copyright TagMan
Click to edit Master title style
IE4 supported preloading
 3 external scripts (.5s) download time, 1 inline script- 0.5s code block, Script 2 & 3 appended after inlines




          FF 5                                        IE 9                                            CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • IE aborts download of external 1 when element is destroyed
        • Scripts in IE execute on append, other browsers start loading then


                                          Private and confidential, copyright TagMan
Click to edit Master title style
Smart Loading sync scripts
 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s




          FF 5                                        IE 9                                            CR 12
                   Downloading       Executing            Onload event                 DOM   Loaded



        • Similar to how browsers now pre-load hardcoded synchronous scripts
        • Best of both worlds, dynamic scripts and enhanced performance


                                          Private and confidential, copyright TagMan
Click to edit Master title style
Code examples
  Native / hardcoded sync script
   – <script src=“myscript.com”></script>

  In-line script
   – <script>var start=+new Date();while ( (+new Date()-start) < 500) {};</script>

  Native / hardcoded css
   – <link rel="stylesheet" href=“mystyle.css” type="text/css“ />

  Dynamic script / css / iframe etc
   – var el=document.createElement(„script‟); el.src=“myscript.js”;
     document.getElementsByTagName('script')[0].parentNode. insertBefore(el,null);

  Webworkers
   – var worker = new Worker('waitworker.js');
     worker1.addEventListener('message', function(e) { log(e.data); }, false);
     worker.postMessage({ cmd: 'start', name: 'worker 1'});




                                  Private & Confidential Copyright TagMan 2011

Weitere ähnliche Inhalte

Was ist angesagt?

Domino Security - not knowing is not an option - MWLUG 2015
Domino Security - not knowing is not an option - MWLUG 2015Domino Security - not knowing is not an option - MWLUG 2015
Domino Security - not knowing is not an option - MWLUG 2015Darren Duke
 
IBM Connections administration – keep your systems running the right way
IBM Connections administration – keep your systems running the right wayIBM Connections administration – keep your systems running the right way
IBM Connections administration – keep your systems running the right wayLetsConnect
 
Planning & Completing An IBM Connections Upgrade
Planning & Completing An IBM Connections UpgradePlanning & Completing An IBM Connections Upgrade
Planning & Completing An IBM Connections UpgradeGabriella Davis
 
Social Connections 12 - IBM Connections Adminblast
Social Connections 12 - IBM Connections AdminblastSocial Connections 12 - IBM Connections Adminblast
Social Connections 12 - IBM Connections AdminblastNico Meisenzahl
 
Our take on Domino 10 - a Ytria webinar
Our take on Domino 10 - a Ytria webinarOur take on Domino 10 - a Ytria webinar
Our take on Domino 10 - a Ytria webinarBenedek Menesi
 
Best Practices for Installing IBM Verse on Premises
Best Practices for Installing IBM Verse on PremisesBest Practices for Installing IBM Verse on Premises
Best Practices for Installing IBM Verse on PremisesTimsterC
 
What We Wish We Had Known: Becoming an IBM Connections Administrator
What We Wish We Had Known: Becoming an IBM Connections AdministratorWhat We Wish We Had Known: Becoming an IBM Connections Administrator
What We Wish We Had Known: Becoming an IBM Connections AdministratorGabriella Davis
 
1084: Planning and Completing an IBM Connections Upgrade
 1084: Planning and Completing an IBM Connections Upgrade 1084: Planning and Completing an IBM Connections Upgrade
1084: Planning and Completing an IBM Connections UpgradeGabriella Davis
 
HCL Domino V12 Key Security Features Overview
HCL Domino V12 Key Security Features Overview HCL Domino V12 Key Security Features Overview
HCL Domino V12 Key Security Features Overview hemantnaik
 
IBM Connections Adminblast - Connect17 (DEV 1268)
IBM Connections Adminblast - Connect17 (DEV 1268)IBM Connections Adminblast - Connect17 (DEV 1268)
IBM Connections Adminblast - Connect17 (DEV 1268)Nico Meisenzahl
 
Planning and Completing an IBM Connections Upgrade
Planning and Completing an IBM Connections UpgradePlanning and Completing an IBM Connections Upgrade
Planning and Completing an IBM Connections UpgradeGabriella Davis
 
IBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
IBM Connect 2016 - 60+ in 60 - Admin Tips Power HourIBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
IBM Connect 2016 - 60+ in 60 - Admin Tips Power HourChris Miller
 
The Sametime Mobile Experience
The Sametime Mobile ExperienceThe Sametime Mobile Experience
The Sametime Mobile ExperienceGabriella Davis
 
Practical solutions for connections administrators lite
Practical solutions for connections administrators litePractical solutions for connections administrators lite
Practical solutions for connections administrators liteSharon James
 
Bewährte Praktiken für HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-Server
Bewährte Praktiken für HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-ServerBewährte Praktiken für HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-Server
Bewährte Praktiken für HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-Serverpanagenda
 
Open Mic: IBM Sametime Web Client & Meeting Server - An Introduction to new f...
Open Mic: IBM Sametime Web Client & Meeting Server - An Introduction to new f...Open Mic: IBM Sametime Web Client & Meeting Server - An Introduction to new f...
Open Mic: IBM Sametime Web Client & Meeting Server - An Introduction to new f...jayeshpar2006
 
Best And Worst Practices Deploying IBM Connections
Best And Worst Practices Deploying IBM ConnectionsBest And Worst Practices Deploying IBM Connections
Best And Worst Practices Deploying IBM ConnectionsLetsConnect
 

Was ist angesagt? (20)

Domino Security - not knowing is not an option - MWLUG 2015
Domino Security - not knowing is not an option - MWLUG 2015Domino Security - not knowing is not an option - MWLUG 2015
Domino Security - not knowing is not an option - MWLUG 2015
 
IBM Connections administration – keep your systems running the right way
IBM Connections administration – keep your systems running the right wayIBM Connections administration – keep your systems running the right way
IBM Connections administration – keep your systems running the right way
 
Planning & Completing An IBM Connections Upgrade
Planning & Completing An IBM Connections UpgradePlanning & Completing An IBM Connections Upgrade
Planning & Completing An IBM Connections Upgrade
 
Social Connections 12 - IBM Connections Adminblast
Social Connections 12 - IBM Connections AdminblastSocial Connections 12 - IBM Connections Adminblast
Social Connections 12 - IBM Connections Adminblast
 
Quickr
QuickrQuickr
Quickr
 
Spnego configuration
Spnego configurationSpnego configuration
Spnego configuration
 
Our take on Domino 10 - a Ytria webinar
Our take on Domino 10 - a Ytria webinarOur take on Domino 10 - a Ytria webinar
Our take on Domino 10 - a Ytria webinar
 
Best Practices for Installing IBM Verse on Premises
Best Practices for Installing IBM Verse on PremisesBest Practices for Installing IBM Verse on Premises
Best Practices for Installing IBM Verse on Premises
 
What We Wish We Had Known: Becoming an IBM Connections Administrator
What We Wish We Had Known: Becoming an IBM Connections AdministratorWhat We Wish We Had Known: Becoming an IBM Connections Administrator
What We Wish We Had Known: Becoming an IBM Connections Administrator
 
1084: Planning and Completing an IBM Connections Upgrade
 1084: Planning and Completing an IBM Connections Upgrade 1084: Planning and Completing an IBM Connections Upgrade
1084: Planning and Completing an IBM Connections Upgrade
 
HCL Domino V12 Key Security Features Overview
HCL Domino V12 Key Security Features Overview HCL Domino V12 Key Security Features Overview
HCL Domino V12 Key Security Features Overview
 
The Domino 10 RHEL 7 Primer
The Domino 10 RHEL 7 PrimerThe Domino 10 RHEL 7 Primer
The Domino 10 RHEL 7 Primer
 
IBM Connections Adminblast - Connect17 (DEV 1268)
IBM Connections Adminblast - Connect17 (DEV 1268)IBM Connections Adminblast - Connect17 (DEV 1268)
IBM Connections Adminblast - Connect17 (DEV 1268)
 
Planning and Completing an IBM Connections Upgrade
Planning and Completing an IBM Connections UpgradePlanning and Completing an IBM Connections Upgrade
Planning and Completing an IBM Connections Upgrade
 
IBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
IBM Connect 2016 - 60+ in 60 - Admin Tips Power HourIBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
IBM Connect 2016 - 60+ in 60 - Admin Tips Power Hour
 
The Sametime Mobile Experience
The Sametime Mobile ExperienceThe Sametime Mobile Experience
The Sametime Mobile Experience
 
Practical solutions for connections administrators lite
Practical solutions for connections administrators litePractical solutions for connections administrators lite
Practical solutions for connections administrators lite
 
Bewährte Praktiken für HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-Server
Bewährte Praktiken für HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-ServerBewährte Praktiken für HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-Server
Bewährte Praktiken für HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-Server
 
Open Mic: IBM Sametime Web Client & Meeting Server - An Introduction to new f...
Open Mic: IBM Sametime Web Client & Meeting Server - An Introduction to new f...Open Mic: IBM Sametime Web Client & Meeting Server - An Introduction to new f...
Open Mic: IBM Sametime Web Client & Meeting Server - An Introduction to new f...
 
Best And Worst Practices Deploying IBM Connections
Best And Worst Practices Deploying IBM ConnectionsBest And Worst Practices Deploying IBM Connections
Best And Worst Practices Deploying IBM Connections
 

Andere mochten auch

Cracking Chip & PIN
Cracking Chip & PINCracking Chip & PIN
Cracking Chip & PINonthewight
 
News Rewired Presentation - OnTheWight's experience with Automated Articles -...
News Rewired Presentation - OnTheWight's experience with Automated Articles -...News Rewired Presentation - OnTheWight's experience with Automated Articles -...
News Rewired Presentation - OnTheWight's experience with Automated Articles -...onthewight
 
East Cowes - Proposed development - Solent Gateways - Dec 2014
East Cowes - Proposed development - Solent Gateways - Dec 2014East Cowes - Proposed development - Solent Gateways - Dec 2014
East Cowes - Proposed development - Solent Gateways - Dec 2014onthewight
 
Wightlink the facts - october 2013
Wightlink   the facts - october 2013Wightlink   the facts - october 2013
Wightlink the facts - october 2013onthewight
 
Innovation at OnTheWight - Presented at What's next for Community Journalism ...
Innovation at OnTheWight - Presented at What's next for Community Journalism ...Innovation at OnTheWight - Presented at What's next for Community Journalism ...
Innovation at OnTheWight - Presented at What's next for Community Journalism ...onthewight
 
Brian Prior - Probability and gambling
Brian Prior - Probability and gamblingBrian Prior - Probability and gambling
Brian Prior - Probability and gamblingonthewight
 
Dr Richard Crowder - Termites, Bees and Robots - 14 Mar 2016 - Isle of Wight ...
Dr Richard Crowder - Termites, Bees and Robots - 14 Mar 2016 - Isle of Wight ...Dr Richard Crowder - Termites, Bees and Robots - 14 Mar 2016 - Isle of Wight ...
Dr Richard Crowder - Termites, Bees and Robots - 14 Mar 2016 - Isle of Wight ...onthewight
 
Presentation to News:Rewired 2011
Presentation to News:Rewired 2011Presentation to News:Rewired 2011
Presentation to News:Rewired 2011onthewight
 
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015onthewight
 
Where do drugs come from?
Where do drugs come from?Where do drugs come from?
Where do drugs come from?onthewight
 
Professor John Coleman, Phonetics Department, Oxford University, talk "Voices...
Professor John Coleman, Phonetics Department, Oxford University, talk "Voices...Professor John Coleman, Phonetics Department, Oxford University, talk "Voices...
Professor John Coleman, Phonetics Department, Oxford University, talk "Voices...onthewight
 
Brian Clarke on Water Aid (Cafe Scientifique)
Brian Clarke on Water Aid (Cafe Scientifique)Brian Clarke on Water Aid (Cafe Scientifique)
Brian Clarke on Water Aid (Cafe Scientifique)onthewight
 
Dr Luke Myers - Tidal Power Isle of Wight - Cafe Scientifique - Sept 2014
Dr Luke Myers - Tidal Power   Isle of Wight - Cafe Scientifique - Sept 2014Dr Luke Myers - Tidal Power   Isle of Wight - Cafe Scientifique - Sept 2014
Dr Luke Myers - Tidal Power Isle of Wight - Cafe Scientifique - Sept 2014onthewight
 
Prof. David Coggon: Environmental health hazards
Prof. David Coggon: Environmental health hazardsProf. David Coggon: Environmental health hazards
Prof. David Coggon: Environmental health hazardsonthewight
 
Prof Steve F King 'The standard models in particle physics'
Prof Steve F King 'The standard models in particle physics'Prof Steve F King 'The standard models in particle physics'
Prof Steve F King 'The standard models in particle physics'onthewight
 
Nanodevices for the detection of disease by Maurits de Planque
Nanodevices for the detection of disease by  Maurits de PlanqueNanodevices for the detection of disease by  Maurits de Planque
Nanodevices for the detection of disease by Maurits de Planqueonthewight
 
Prof Philip Calder on Omega 3 at Isle Of Wight Cafe Scientifique on 10 Feb 2014
Prof Philip Calder on Omega 3 at Isle Of Wight Cafe Scientifique on 10 Feb 2014Prof Philip Calder on Omega 3 at Isle Of Wight Cafe Scientifique on 10 Feb 2014
Prof Philip Calder on Omega 3 at Isle Of Wight Cafe Scientifique on 10 Feb 2014onthewight
 
Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015
Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015
Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015onthewight
 
Yarmouth in the 20th Century
Yarmouth in the 20th CenturyYarmouth in the 20th Century
Yarmouth in the 20th Centuryonthewight
 

Andere mochten auch (19)

Cracking Chip & PIN
Cracking Chip & PINCracking Chip & PIN
Cracking Chip & PIN
 
News Rewired Presentation - OnTheWight's experience with Automated Articles -...
News Rewired Presentation - OnTheWight's experience with Automated Articles -...News Rewired Presentation - OnTheWight's experience with Automated Articles -...
News Rewired Presentation - OnTheWight's experience with Automated Articles -...
 
East Cowes - Proposed development - Solent Gateways - Dec 2014
East Cowes - Proposed development - Solent Gateways - Dec 2014East Cowes - Proposed development - Solent Gateways - Dec 2014
East Cowes - Proposed development - Solent Gateways - Dec 2014
 
Wightlink the facts - october 2013
Wightlink   the facts - october 2013Wightlink   the facts - october 2013
Wightlink the facts - october 2013
 
Innovation at OnTheWight - Presented at What's next for Community Journalism ...
Innovation at OnTheWight - Presented at What's next for Community Journalism ...Innovation at OnTheWight - Presented at What's next for Community Journalism ...
Innovation at OnTheWight - Presented at What's next for Community Journalism ...
 
Brian Prior - Probability and gambling
Brian Prior - Probability and gamblingBrian Prior - Probability and gambling
Brian Prior - Probability and gambling
 
Dr Richard Crowder - Termites, Bees and Robots - 14 Mar 2016 - Isle of Wight ...
Dr Richard Crowder - Termites, Bees and Robots - 14 Mar 2016 - Isle of Wight ...Dr Richard Crowder - Termites, Bees and Robots - 14 Mar 2016 - Isle of Wight ...
Dr Richard Crowder - Termites, Bees and Robots - 14 Mar 2016 - Isle of Wight ...
 
Presentation to News:Rewired 2011
Presentation to News:Rewired 2011Presentation to News:Rewired 2011
Presentation to News:Rewired 2011
 
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015
Dr Jen Gupta - Understanding nature’s death ray guns - 13 Oct 2015
 
Where do drugs come from?
Where do drugs come from?Where do drugs come from?
Where do drugs come from?
 
Professor John Coleman, Phonetics Department, Oxford University, talk "Voices...
Professor John Coleman, Phonetics Department, Oxford University, talk "Voices...Professor John Coleman, Phonetics Department, Oxford University, talk "Voices...
Professor John Coleman, Phonetics Department, Oxford University, talk "Voices...
 
Brian Clarke on Water Aid (Cafe Scientifique)
Brian Clarke on Water Aid (Cafe Scientifique)Brian Clarke on Water Aid (Cafe Scientifique)
Brian Clarke on Water Aid (Cafe Scientifique)
 
Dr Luke Myers - Tidal Power Isle of Wight - Cafe Scientifique - Sept 2014
Dr Luke Myers - Tidal Power   Isle of Wight - Cafe Scientifique - Sept 2014Dr Luke Myers - Tidal Power   Isle of Wight - Cafe Scientifique - Sept 2014
Dr Luke Myers - Tidal Power Isle of Wight - Cafe Scientifique - Sept 2014
 
Prof. David Coggon: Environmental health hazards
Prof. David Coggon: Environmental health hazardsProf. David Coggon: Environmental health hazards
Prof. David Coggon: Environmental health hazards
 
Prof Steve F King 'The standard models in particle physics'
Prof Steve F King 'The standard models in particle physics'Prof Steve F King 'The standard models in particle physics'
Prof Steve F King 'The standard models in particle physics'
 
Nanodevices for the detection of disease by Maurits de Planque
Nanodevices for the detection of disease by  Maurits de PlanqueNanodevices for the detection of disease by  Maurits de Planque
Nanodevices for the detection of disease by Maurits de Planque
 
Prof Philip Calder on Omega 3 at Isle Of Wight Cafe Scientifique on 10 Feb 2014
Prof Philip Calder on Omega 3 at Isle Of Wight Cafe Scientifique on 10 Feb 2014Prof Philip Calder on Omega 3 at Isle Of Wight Cafe Scientifique on 10 Feb 2014
Prof Philip Calder on Omega 3 at Isle Of Wight Cafe Scientifique on 10 Feb 2014
 
Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015
Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015
Prof Arnold Taylor: The significant experiments of Robert Hooke - 8 June 2015
 
Yarmouth in the 20th Century
Yarmouth in the 20th CenturyYarmouth in the 20th Century
Yarmouth in the 20th Century
 

Ähnlich wie Smart tag loading Script loading case study 2011

The Future of DOCman, Joomladay Italy 2009
The Future of DOCman, Joomladay Italy 2009The Future of DOCman, Joomladay Italy 2009
The Future of DOCman, Joomladay Italy 2009Joomlatools
 
Joomladay Netherlands 2012 - File and document management in Joomla
Joomladay Netherlands 2012  - File and document management in JoomlaJoomladay Netherlands 2012  - File and document management in Joomla
Joomladay Netherlands 2012 - File and document management in JoomlaJoomlatools
 
DOCman, Free Software, and Fear of Forks
DOCman, Free Software, and Fear of ForksDOCman, Free Software, and Fear of Forks
DOCman, Free Software, and Fear of ForksJoomlatools
 
DACHNUG50 EVERYTHING-you-need-to-know-about-HCL-Nomad-Web.pdf
DACHNUG50 EVERYTHING-you-need-to-know-about-HCL-Nomad-Web.pdfDACHNUG50 EVERYTHING-you-need-to-know-about-HCL-Nomad-Web.pdf
DACHNUG50 EVERYTHING-you-need-to-know-about-HCL-Nomad-Web.pdfDNUG e.V.
 
AEM 6 DAM - Integrations, Integrations, Integrations
AEM 6 DAM - Integrations, Integrations, IntegrationsAEM 6 DAM - Integrations, Integrations, Integrations
AEM 6 DAM - Integrations, Integrations, Integrationsconnectwebex
 
AEM DAM Integrations showcases - Connect Conference 2015
AEM DAM Integrations showcases - Connect Conference 2015AEM DAM Integrations showcases - Connect Conference 2015
AEM DAM Integrations showcases - Connect Conference 2015Jakub Kaniewski
 
Optimising Web Application Frontend
Optimising Web Application FrontendOptimising Web Application Frontend
Optimising Web Application Frontendtkramar
 
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...Victor Toal
 
We4IT LCTY 2013 - x-pages-men - ibm domino xpages - performance in a nutshell
We4IT LCTY 2013 - x-pages-men - ibm domino xpages - performance in a nutshellWe4IT LCTY 2013 - x-pages-men - ibm domino xpages - performance in a nutshell
We4IT LCTY 2013 - x-pages-men - ibm domino xpages - performance in a nutshellWe4IT Group
 
Front End Optimization [Cloud Connect 2012]
Front End Optimization [Cloud Connect 2012]Front End Optimization [Cloud Connect 2012]
Front End Optimization [Cloud Connect 2012]Strangeloop
 
The Ultimate Administrator’s Guide to HCL Nomad Web
The Ultimate Administrator’s Guide to HCL Nomad WebThe Ultimate Administrator’s Guide to HCL Nomad Web
The Ultimate Administrator’s Guide to HCL Nomad Webpanagenda
 
Page Experience Update SMX 2020 (Aleks Shklyar)
Page Experience Update SMX 2020 (Aleks Shklyar)Page Experience Update SMX 2020 (Aleks Shklyar)
Page Experience Update SMX 2020 (Aleks Shklyar)Aleks (Aleksander) Shklyar
 
CSW2017 Geshev+Miller logic bug hunting in chrome on android
CSW2017 Geshev+Miller logic bug hunting in chrome on androidCSW2017 Geshev+Miller logic bug hunting in chrome on android
CSW2017 Geshev+Miller logic bug hunting in chrome on androidCanSecWest
 
Web components, so close!
Web components, so close!Web components, so close!
Web components, so close!Aleks Zinevych
 
Foxtrot C2: A Journey of Payload Delivery
Foxtrot C2: A Journey of Payload DeliveryFoxtrot C2: A Journey of Payload Delivery
Foxtrot C2: A Journey of Payload DeliveryDimitry Snezhkov
 

Ähnlich wie Smart tag loading Script loading case study 2011 (20)

The Future of DOCman, Joomladay Italy 2009
The Future of DOCman, Joomladay Italy 2009The Future of DOCman, Joomladay Italy 2009
The Future of DOCman, Joomladay Italy 2009
 
Working and Features of HTML5 and PhoneGap - An Overview
Working and Features of HTML5 and PhoneGap - An OverviewWorking and Features of HTML5 and PhoneGap - An Overview
Working and Features of HTML5 and PhoneGap - An Overview
 
Performance tuning of Websites
Performance tuning of WebsitesPerformance tuning of Websites
Performance tuning of Websites
 
Joomladay Netherlands 2012 - File and document management in Joomla
Joomladay Netherlands 2012  - File and document management in JoomlaJoomladay Netherlands 2012  - File and document management in Joomla
Joomladay Netherlands 2012 - File and document management in Joomla
 
DOCman, Free Software, and Fear of Forks
DOCman, Free Software, and Fear of ForksDOCman, Free Software, and Fear of Forks
DOCman, Free Software, and Fear of Forks
 
DACHNUG50 EVERYTHING-you-need-to-know-about-HCL-Nomad-Web.pdf
DACHNUG50 EVERYTHING-you-need-to-know-about-HCL-Nomad-Web.pdfDACHNUG50 EVERYTHING-you-need-to-know-about-HCL-Nomad-Web.pdf
DACHNUG50 EVERYTHING-you-need-to-know-about-HCL-Nomad-Web.pdf
 
AEM 6 DAM - Integrations, Integrations, Integrations
AEM 6 DAM - Integrations, Integrations, IntegrationsAEM 6 DAM - Integrations, Integrations, Integrations
AEM 6 DAM - Integrations, Integrations, Integrations
 
AEM DAM Integrations showcases - Connect Conference 2015
AEM DAM Integrations showcases - Connect Conference 2015AEM DAM Integrations showcases - Connect Conference 2015
AEM DAM Integrations showcases - Connect Conference 2015
 
Optimising Web Application Frontend
Optimising Web Application FrontendOptimising Web Application Frontend
Optimising Web Application Frontend
 
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
MWLUG 2015 - IBM Connections - Installing the Free "Extras" and Integrating w...
 
We4IT LCTY 2013 - x-pages-men - ibm domino xpages - performance in a nutshell
We4IT LCTY 2013 - x-pages-men - ibm domino xpages - performance in a nutshellWe4IT LCTY 2013 - x-pages-men - ibm domino xpages - performance in a nutshell
We4IT LCTY 2013 - x-pages-men - ibm domino xpages - performance in a nutshell
 
Front End Optimization [Cloud Connect 2012]
Front End Optimization [Cloud Connect 2012]Front End Optimization [Cloud Connect 2012]
Front End Optimization [Cloud Connect 2012]
 
The Ultimate Administrator’s Guide to HCL Nomad Web
The Ultimate Administrator’s Guide to HCL Nomad WebThe Ultimate Administrator’s Guide to HCL Nomad Web
The Ultimate Administrator’s Guide to HCL Nomad Web
 
Page Experience Update SMX 2020 (Aleks Shklyar)
Page Experience Update SMX 2020 (Aleks Shklyar)Page Experience Update SMX 2020 (Aleks Shklyar)
Page Experience Update SMX 2020 (Aleks Shklyar)
 
Frontend Caching - The "new" frontier
Frontend Caching - The "new" frontierFrontend Caching - The "new" frontier
Frontend Caching - The "new" frontier
 
Coping with Cyber Monday
Coping with Cyber MondayCoping with Cyber Monday
Coping with Cyber Monday
 
CSW2017 Geshev+Miller logic bug hunting in chrome on android
CSW2017 Geshev+Miller logic bug hunting in chrome on androidCSW2017 Geshev+Miller logic bug hunting in chrome on android
CSW2017 Geshev+Miller logic bug hunting in chrome on android
 
Introduction to Web Designing
Introduction to Web DesigningIntroduction to Web Designing
Introduction to Web Designing
 
Web components, so close!
Web components, so close!Web components, so close!
Web components, so close!
 
Foxtrot C2: A Journey of Payload Delivery
Foxtrot C2: A Journey of Payload DeliveryFoxtrot C2: A Journey of Payload Delivery
Foxtrot C2: A Journey of Payload Delivery
 

Kürzlich hochgeladen

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 

Kürzlich hochgeladen (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Smart tag loading Script loading case study 2011

  • 1. Click to edit Master title style JavaScript and other elements Script Loading Case Study 2011 Smart tags, smarter marketing CONFIDENTIALITY NOTICE: The information contained in this presentation is intended solely for the use of the attendee companies and contains information that is privileged, confidential and subject to copyright.
  • 2. Purpose edit Master title style Click to To explore the topics first raised by Steve Sounders in his book Even Faster Websites To understand how JavaScript interacts with other browser elements to cause performance issues To highlight browser improvements since Steve’s original book and explore the challenges created via dynamic script loading Private & Confidential Copyright TagMan 2011
  • 3. Methodology Master title style Click to edit 20 standalone test pages so far and rising Tests look at impact of coding elements into the HTML versus dynamic insertion by JavaScript Core JavaScript function takes a timestamp and loops until it is 30 seconds later Focused on latest available browser – Firefox 5, Internet Explorer 9 and Chrome 12 Private & Confidential Copyright TagMan 2011
  • 4. What we edit Master title style Click to found Browsers have got a lot better since Steve’s book But they still can’t deal with dynamic script loading Asynchronous script loading is the way ahead Smart Loading can solve the problem until everyone goes async Private & Confidential Copyright TagMan 2011
  • 5. Click scripts Master title style How to edit used to load 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s FF 3.5 IE7 CR6 Downloading Executing Onload event DOM Loaded • Browsers used to download scripts sequentially • Chrome was the first browser to download scripts in advance Private and confidential, copyright TagMan 2009
  • 6. Click to edit Master title style Syncronous script loading now 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Browsers now look ahead and download what is in the HTML • Load times in FF & IE now match those of legacy Chrome Private and confidential, copyright TagMan
  • 7. Click to edit Master title style Asyncronous scripts don’t block 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Chrome and Firefox support async scripts that do not block • Not guaranteed to executed in original order (see FF above) Private and confidential, copyright TagMan
  • 8. Click to edit Master ones style Neither do defered title 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Script defer is similar to async but only works in IE & Safari 4+ • Scripts are loaded after DOM ready and executed in order Private and confidential, copyright TagMan 2009
  • 9. Click to edit Master title style nice But CSS and scripts don’t play 4 external css (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Would expect above example to take 1s to “loaded” • FF5 appears to downloads CSS 4 & 6 twice Private and confidential, copyright TagMan
  • 10. Click to edit Master title clock back Dynamic load turns the style 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Dynamically loading scripts prevents the browser preloading them • Performance is similar to legacy script loading, even in chrome Private and confidential, copyright TagMan
  • 11. Click to edit Master titlework fine Dynamic Async Scripts style 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Dynamic appending of async scripts negates the issue • Results equivalent to native async script injection Private and confidential, copyright TagMan
  • 12. Click to edit Masterin-line scripts Dynamic CSS with title style 4 external CSS (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Firefox performance when CSS inserted dynamically • IE & Chrome CSS blocks scripts and back to full blocking Private and confidential, copyright TagMan
  • 13. Click to edit Master title style Iframes are not good either 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Iframes are the slowest HTML element to create & block partially • Big delays between loading and page completion, hard to render Private and confidential, copyright TagMan
  • 14. Click to edit Master title style parallel JavaScript is not executed in 5 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Async means run independently to other browser processes • But only one JavaScript process can execute at a time Private and confidential, copyright TagMan
  • 15. Click Workers allow title style Web to edit Master parallel scripts 4 web workers, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Part of HTML5 spec, will be supported in IE 10 (Fall 2011) • Scripts execute independently of each other and Dom creation Private and confidential, copyright TagMan
  • 16. Click to edit Master title style IE4 supported preloading 3 external scripts (.5s) download time, 1 inline script- 0.5s code block, Script 2 & 3 appended after inlines FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • IE aborts download of external 1 when element is destroyed • Scripts in IE execute on append, other browsers start loading then Private and confidential, copyright TagMan
  • 17. Click to edit Master title style Smart Loading sync scripts 4 external scripts (.5s) download time, 2 inline scripts, code blocks page for .5s FF 5 IE 9 CR 12 Downloading Executing Onload event DOM Loaded • Similar to how browsers now pre-load hardcoded synchronous scripts • Best of both worlds, dynamic scripts and enhanced performance Private and confidential, copyright TagMan
  • 18. Click to edit Master title style Code examples Native / hardcoded sync script – <script src=“myscript.com”></script> In-line script – <script>var start=+new Date();while ( (+new Date()-start) < 500) {};</script> Native / hardcoded css – <link rel="stylesheet" href=“mystyle.css” type="text/css“ /> Dynamic script / css / iframe etc – var el=document.createElement(„script‟); el.src=“myscript.js”; document.getElementsByTagName('script')[0].parentNode. insertBefore(el,null); Webworkers – var worker = new Worker('waitworker.js'); worker1.addEventListener('message', function(e) { log(e.data); }, false); worker.postMessage({ cmd: 'start', name: 'worker 1'}); Private & Confidential Copyright TagMan 2011