PRPL Pattern with Webpack and React

Grgur Grisogono
Grgur GrisogonoWeb Application Architecture & Management Expert
PRPL with &
Grgur Grisogono
@ggrgur
Modus Create
@moduscreate
Grgur
Grisogono
Software Architect

@moduscreate
Cras justo,
dapibus ac
facilisis in,
egestas
eget quam.
⚠ Problems
🌍 Mobile web is slow
📱
⚛
Avg mobile device
is low/mid end
Computing moved
to client side
53% of visitors abandon sites if it
takes more than 3 seconds to load
Google DoubleClick
Mobify
100msdecrease in loading
1.11%conversion increase
1kbJavaScript
1msParse Time
Avg Content/Page
2010
113 kB
702 kB
httparchive.org
2016
420 kB
2469 kB
Year
JS
All
Download on 3G
4 seconds
Cost of 420kB JS
Parse time
400+ ms
CACHING
1
2
GOALS
Minimum
Time to Initial
Impression
Minimum Time
to Interactive
Strategy
Technology
PRPL:
Push
Render
Pre-cache
Lazy-load
critical resources
route
successor routes
routes on demand
Request App Shell
Route
Interactive
Preload
chunks
Dependencies
Routes
Dependencies
Possible
successors
(HTTP2 Push)
Minimal
architecture
Pre-render
Preload APIs
Switch route
Execute JS
Cache
PRPL Workflow
bit.ly/prpl-wpack
Demo
🍿
Bundled SPA
vs
Chunks & Preloading
No add-ons🚫📶Regular 3G
bandwidth throttling
5x CPU
throttling
🐢 No caching💾
Testing Environment
23.0KB
67.7KB
App Core Size
34% of the original
600.0ms
1,550.0ms
Core DL Time
38% of the original
256.0ms
870.0ms
Scripting Time
29% of the original
1,750ms
3,000ms
Time to Interactive
58% of the original
+14% conversion 💰
Branches:
step-0 to step-6
Try yourself
bit.ly/prpl-wpack
Reach out! 🙌
moduscreate.com
@moduscreate
Grgur Grisogono
@ggrgur
1 of 20

Recommended

The PRPL Pattern by
The PRPL PatternThe PRPL Pattern
The PRPL PatternRed Pill Now
927 views79 slides
Webpack & React Performance in 16+ Steps by
Webpack & React Performance in 16+ StepsWebpack & React Performance in 16+ Steps
Webpack & React Performance in 16+ StepsGrgur Grisogono
4.9K views63 slides
HPEC 2021 grblas by
HPEC 2021 grblasHPEC 2021 grblas
HPEC 2021 grblasErikWelch2
91 views8 slides
WordPress on the Jamstack by rtCamper Muhammad Muhsin @ WordPress Colombo Meetup by
WordPress on the Jamstack by rtCamper Muhammad Muhsin @ WordPress Colombo MeetupWordPress on the Jamstack by rtCamper Muhammad Muhsin @ WordPress Colombo Meetup
WordPress on the Jamstack by rtCamper Muhammad Muhsin @ WordPress Colombo MeetuprtCamp
189 views39 slides
M is for modernization by
M is for modernizationM is for modernization
M is for modernizationRed Pill Now
710 views153 slides
Where should I run my code? Serverless, Containers, Virtual Machines and more by
Where should I run my code? Serverless, Containers, Virtual Machines and moreWhere should I run my code? Serverless, Containers, Virtual Machines and more
Where should I run my code? Serverless, Containers, Virtual Machines and moreBret McGowen - NYC Google Developer Advocate
800 views100 slides

More Related Content

What's hot

Alexey Kupriyanenko "Release Early, Often, Stable" by
Alexey Kupriyanenko "Release Early, Often, Stable"Alexey Kupriyanenko "Release Early, Often, Stable"
Alexey Kupriyanenko "Release Early, Often, Stable"Fwdays
260 views64 slides
Supercharge your app with Cloud Functions for Firebase by
Supercharge your app with Cloud Functions for FirebaseSupercharge your app with Cloud Functions for Firebase
Supercharge your app with Cloud Functions for FirebaseBret McGowen - NYC Google Developer Advocate
1.3K views38 slides
Firebase Code Lab - 2015 GDG Buffalo DevFest by
Firebase Code Lab - 2015 GDG Buffalo DevFestFirebase Code Lab - 2015 GDG Buffalo DevFest
Firebase Code Lab - 2015 GDG Buffalo DevFestBret McGowen - NYC Google Developer Advocate
855 views39 slides
Play Framework on Google App Engine by
Play Framework on Google App EnginePlay Framework on Google App Engine
Play Framework on Google App EngineFred Lin
8.2K views69 slides
Cloud Spin - building a photo booth with the Google Cloud Platform by
Cloud Spin - building a photo booth with the Google Cloud PlatformCloud Spin - building a photo booth with the Google Cloud Platform
Cloud Spin - building a photo booth with the Google Cloud PlatformBret McGowen - NYC Google Developer Advocate
809 views70 slides
DEVOPS LIVE 2018 JaC by
DEVOPS LIVE 2018 JaCDEVOPS LIVE 2018 JaC
DEVOPS LIVE 2018 JaCBrian Mericle
316 views16 slides

What's hot(20)

Alexey Kupriyanenko "Release Early, Often, Stable" by Fwdays
Alexey Kupriyanenko "Release Early, Often, Stable"Alexey Kupriyanenko "Release Early, Often, Stable"
Alexey Kupriyanenko "Release Early, Often, Stable"
Fwdays260 views
Play Framework on Google App Engine by Fred Lin
Play Framework on Google App EnginePlay Framework on Google App Engine
Play Framework on Google App Engine
Fred Lin8.2K views
Automated Web App Performance Testing Using WebDriver by seleniumconf
Automated Web App Performance Testing Using WebDriverAutomated Web App Performance Testing Using WebDriver
Automated Web App Performance Testing Using WebDriver
seleniumconf7.3K views
The WordPress Performance Team by Felix Arntz
The WordPress Performance TeamThe WordPress Performance Team
The WordPress Performance Team
Felix Arntz560 views
Google App Engine - Java Style by Peter Lind
Google App Engine - Java StyleGoogle App Engine - Java Style
Google App Engine - Java Style
Peter Lind1.8K views
Vered Flis: Because performance matters! Architecture Next 20 by CodeValue
Vered Flis: Because performance matters! Architecture Next 20Vered Flis: Because performance matters! Architecture Next 20
Vered Flis: Because performance matters! Architecture Next 20
CodeValue3K views
GraphQL-ify your APIs - Devoxx UK 2021 by Soham Dasgupta
 GraphQL-ify your APIs - Devoxx UK 2021 GraphQL-ify your APIs - Devoxx UK 2021
GraphQL-ify your APIs - Devoxx UK 2021
Soham Dasgupta102 views
Rubyconf presentation by krevuri
Rubyconf presentationRubyconf presentation
Rubyconf presentation
krevuri240 views
Micro service architecture - building scalable web solutions - George James -... by Red Blue Blur Ideas
Micro service architecture - building scalable web solutions - George James -...Micro service architecture - building scalable web solutions - George James -...
Micro service architecture - building scalable web solutions - George James -...
Sandstone HPC: A Domain General Gateway for New Users by Zebula Sampedro
Sandstone HPC: A Domain General Gateway for New UsersSandstone HPC: A Domain General Gateway for New Users
Sandstone HPC: A Domain General Gateway for New Users
Zebula Sampedro67 views
Practical continuous quality gates for development process by Andrii Soldatenko
Practical continuous quality gates for development processPractical continuous quality gates for development process
Practical continuous quality gates for development process
Andrii Soldatenko6.5K views
Decoupled Architecture and WordPress by Pantheon
Decoupled Architecture and WordPressDecoupled Architecture and WordPress
Decoupled Architecture and WordPress
Pantheon3.6K views

Similar to PRPL Pattern with Webpack and React

Mobile web performance - MoDev East by
Mobile web performance - MoDev EastMobile web performance - MoDev East
Mobile web performance - MoDev EastPatrick Meenan
3.4K views60 slides
Optimizing browser experience - App!mobile 2013 conf by
Optimizing browser experience - App!mobile 2013 confOptimizing browser experience - App!mobile 2013 conf
Optimizing browser experience - App!mobile 2013 confMáté Nádasdi
1.4K views18 slides
Web Performance Optimization by
Web Performance OptimizationWeb Performance Optimization
Web Performance OptimizationLivares Technologies Pvt Ltd
34 views33 slides
20 tips for website performance by
20 tips for website performance20 tips for website performance
20 tips for website performanceAndrew Siemer
103 views61 slides
The need for Speed: Advanced #webperf - SEOday 2018 by
The need for Speed: Advanced #webperf - SEOday 2018The need for Speed: Advanced #webperf - SEOday 2018
The need for Speed: Advanced #webperf - SEOday 2018Bastian Grimm
3.4K views84 slides
Building for, perceiving and measuring performance for mobile web by
Building for, perceiving and measuring performance for mobile webBuilding for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile webRobin Glen
1.5K views65 slides

Similar to PRPL Pattern with Webpack and React(20)

Mobile web performance - MoDev East by Patrick Meenan
Mobile web performance - MoDev EastMobile web performance - MoDev East
Mobile web performance - MoDev East
Patrick Meenan3.4K views
Optimizing browser experience - App!mobile 2013 conf by Máté Nádasdi
Optimizing browser experience - App!mobile 2013 confOptimizing browser experience - App!mobile 2013 conf
Optimizing browser experience - App!mobile 2013 conf
Máté Nádasdi1.4K views
20 tips for website performance by Andrew Siemer
20 tips for website performance20 tips for website performance
20 tips for website performance
Andrew Siemer103 views
The need for Speed: Advanced #webperf - SEOday 2018 by Bastian Grimm
The need for Speed: Advanced #webperf - SEOday 2018The need for Speed: Advanced #webperf - SEOday 2018
The need for Speed: Advanced #webperf - SEOday 2018
Bastian Grimm3.4K views
Building for, perceiving and measuring performance for mobile web by Robin Glen
Building for, perceiving and measuring performance for mobile webBuilding for, perceiving and measuring performance for mobile web
Building for, perceiving and measuring performance for mobile web
Robin Glen1.5K views
How NOT to get lost in the current JavaScript landscape by Radosław Scheibinger
How NOT to get lost in the current JavaScript landscapeHow NOT to get lost in the current JavaScript landscape
How NOT to get lost in the current JavaScript landscape
Practical Performance Tips and Tricks to Make Your HTML/JavaScript Apps Faster by Doris Chen
Practical Performance Tips and Tricks to Make Your HTML/JavaScript Apps FasterPractical Performance Tips and Tricks to Make Your HTML/JavaScript Apps Faster
Practical Performance Tips and Tricks to Make Your HTML/JavaScript Apps Faster
Doris Chen9.7K views
Chrome Dev Summit Summary 2013 part 1 - what’s hot ? by Sacha Leprêtre
Chrome Dev Summit Summary 2013 part 1 - what’s hot ?Chrome Dev Summit Summary 2013 part 1 - what’s hot ?
Chrome Dev Summit Summary 2013 part 1 - what’s hot ?
Sacha Leprêtre2K views
Web performance mercadolibre - ECI 2013 by Santiago Aimetta
Web performance   mercadolibre - ECI 2013Web performance   mercadolibre - ECI 2013
Web performance mercadolibre - ECI 2013
Santiago Aimetta1.2K views
Need For Speed: How to Deliver Faster, Safer Websites by Rachel Wandishin
Need For Speed: How to Deliver Faster, Safer WebsitesNeed For Speed: How to Deliver Faster, Safer Websites
Need For Speed: How to Deliver Faster, Safer Websites
Rachel Wandishin133 views
Web performance optimization - MercadoLibre by Pablo Moretti
Web performance optimization - MercadoLibreWeb performance optimization - MercadoLibre
Web performance optimization - MercadoLibre
Pablo Moretti2.5K views
Doug Sillars on App Optimization by wipjam
Doug Sillars on App OptimizationDoug Sillars on App Optimization
Doug Sillars on App Optimization
wipjam789 views
JS Fest 2019/Autumn. Александр Товмач. JAMstack by JSFestUA
JS Fest 2019/Autumn. Александр Товмач. JAMstackJS Fest 2019/Autumn. Александр Товмач. JAMstack
JS Fest 2019/Autumn. Александр Товмач. JAMstack
JSFestUA394 views
3 Tips for a better mobile User Experience by Klaus Enzenhofer
3 Tips for a better mobile User Experience3 Tips for a better mobile User Experience
3 Tips for a better mobile User Experience
Klaus Enzenhofer323 views
Super speed around the globe - SearchLeeds 2018 by Bastian Grimm
Super speed around the globe - SearchLeeds 2018Super speed around the globe - SearchLeeds 2018
Super speed around the globe - SearchLeeds 2018
Bastian Grimm7.8K views

More from Grgur Grisogono

Back to the Future with ES.next by
Back to the Future with ES.nextBack to the Future with ES.next
Back to the Future with ES.nextGrgur Grisogono
1.3K views39 slides
Frustration-Free Packaging of Ext JS 5 Applications by
Frustration-Free Packaging of Ext JS 5 ApplicationsFrustration-Free Packaging of Ext JS 5 Applications
Frustration-Free Packaging of Ext JS 5 ApplicationsGrgur Grisogono
2.1K views41 slides
Sencha Space review by
Sencha Space reviewSencha Space review
Sencha Space reviewGrgur Grisogono
3.1K views53 slides
ModUX keynote by
ModUX keynoteModUX keynote
ModUX keynoteGrgur Grisogono
1.4K views66 slides
Building Cordova plugins for iOS by
Building Cordova plugins for iOSBuilding Cordova plugins for iOS
Building Cordova plugins for iOSGrgur Grisogono
3.3K views112 slides
Unit and functional testing with Siesta by
Unit and functional testing with SiestaUnit and functional testing with Siesta
Unit and functional testing with SiestaGrgur Grisogono
4.6K views68 slides

More from Grgur Grisogono(17)

Back to the Future with ES.next by Grgur Grisogono
Back to the Future with ES.nextBack to the Future with ES.next
Back to the Future with ES.next
Grgur Grisogono1.3K views
Frustration-Free Packaging of Ext JS 5 Applications by Grgur Grisogono
Frustration-Free Packaging of Ext JS 5 ApplicationsFrustration-Free Packaging of Ext JS 5 Applications
Frustration-Free Packaging of Ext JS 5 Applications
Grgur Grisogono2.1K views
Building Cordova plugins for iOS by Grgur Grisogono
Building Cordova plugins for iOSBuilding Cordova plugins for iOS
Building Cordova plugins for iOS
Grgur Grisogono3.3K views
Unit and functional testing with Siesta by Grgur Grisogono
Unit and functional testing with SiestaUnit and functional testing with Siesta
Unit and functional testing with Siesta
Grgur Grisogono4.6K views
Practices and obstacles in agile development by Grgur Grisogono
Practices and obstacles in agile developmentPractices and obstacles in agile development
Practices and obstacles in agile development
Grgur Grisogono900 views
Give Responsive Design a Mobile Performance Boost by Grgur Grisogono
Give Responsive Design a Mobile Performance BoostGive Responsive Design a Mobile Performance Boost
Give Responsive Design a Mobile Performance Boost
Grgur Grisogono708 views
Making the Web Work on Mobile by Grgur Grisogono
Making the Web Work on MobileMaking the Web Work on Mobile
Making the Web Work on Mobile
Grgur Grisogono1.3K views
Exploring the Possibilities of Sencha and WebRTC by Grgur Grisogono
Exploring the Possibilities of Sencha and WebRTCExploring the Possibilities of Sencha and WebRTC
Exploring the Possibilities of Sencha and WebRTC
Grgur Grisogono5.1K views
What's Coming Next in Sencha Frameworks by Grgur Grisogono
What's Coming Next in Sencha FrameworksWhat's Coming Next in Sencha Frameworks
What's Coming Next in Sencha Frameworks
Grgur Grisogono1.6K views

Recently uploaded

Astera Labs: Intelligent Connectivity for Cloud and AI Infrastructure by
Astera Labs:  Intelligent Connectivity for Cloud and AI InfrastructureAstera Labs:  Intelligent Connectivity for Cloud and AI Infrastructure
Astera Labs: Intelligent Connectivity for Cloud and AI InfrastructureCXL Forum
125 views16 slides
Tunable Laser (1).pptx by
Tunable Laser (1).pptxTunable Laser (1).pptx
Tunable Laser (1).pptxHajira Mahmood
21 views37 slides
Micron CXL product and architecture update by
Micron CXL product and architecture updateMicron CXL product and architecture update
Micron CXL product and architecture updateCXL Forum
27 views7 slides
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad... by
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad..."Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...Fwdays
40 views30 slides
Transcript: The Details of Description Techniques tips and tangents on altern... by
Transcript: The Details of Description Techniques tips and tangents on altern...Transcript: The Details of Description Techniques tips and tangents on altern...
Transcript: The Details of Description Techniques tips and tangents on altern...BookNet Canada
119 views15 slides

Recently uploaded(20)

Astera Labs: Intelligent Connectivity for Cloud and AI Infrastructure by CXL Forum
Astera Labs:  Intelligent Connectivity for Cloud and AI InfrastructureAstera Labs:  Intelligent Connectivity for Cloud and AI Infrastructure
Astera Labs: Intelligent Connectivity for Cloud and AI Infrastructure
CXL Forum125 views
Micron CXL product and architecture update by CXL Forum
Micron CXL product and architecture updateMicron CXL product and architecture update
Micron CXL product and architecture update
CXL Forum27 views
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad... by Fwdays
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad..."Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...
Fwdays40 views
Transcript: The Details of Description Techniques tips and tangents on altern... by BookNet Canada
Transcript: The Details of Description Techniques tips and tangents on altern...Transcript: The Details of Description Techniques tips and tangents on altern...
Transcript: The Details of Description Techniques tips and tangents on altern...
BookNet Canada119 views
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst449 views
The details of description: Techniques, tips, and tangents on alternative tex... by BookNet Canada
The details of description: Techniques, tips, and tangents on alternative tex...The details of description: Techniques, tips, and tangents on alternative tex...
The details of description: Techniques, tips, and tangents on alternative tex...
BookNet Canada110 views
AI: mind, matter, meaning, metaphors, being, becoming, life values by Twain Liu 刘秋艳
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life values
Combining Orchestration and Choreography for a Clean Architecture by ThomasHeinrichs1
Combining Orchestration and Choreography for a Clean ArchitectureCombining Orchestration and Choreography for a Clean Architecture
Combining Orchestration and Choreography for a Clean Architecture
ThomasHeinrichs168 views
Spesifikasi Lengkap ASUS Vivobook Go 14 by Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang35 views
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa... by The Digital Insurer
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum... by NUS-ISS
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
NUS-ISS28 views
The Importance of Cybersecurity for Digital Transformation by NUS-ISS
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital Transformation
NUS-ISS25 views
JCon Live 2023 - Lice coding some integration problems by Bernd Ruecker
JCon Live 2023 - Lice coding some integration problemsJCon Live 2023 - Lice coding some integration problems
JCon Live 2023 - Lice coding some integration problems
Bernd Ruecker67 views
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen... by NUS-ISS
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
NUS-ISS23 views
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor... by Vadym Kazulkin
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
Vadym Kazulkin70 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi113 views
MemVerge: Memory Viewer Software by CXL Forum
MemVerge: Memory Viewer SoftwareMemVerge: Memory Viewer Software
MemVerge: Memory Viewer Software
CXL Forum118 views
[2023] Putting the R! in R&D.pdf by Eleanor McHugh
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh38 views

PRPL Pattern with Webpack and React