Peter Kröner
Defeat that legacy monster! Guerilla refactoring with web standards
#1about 2 minutes
Understanding the nature of legacy project monsters
Legacy projects are often more than just broken software; they can be an enemy that grows stronger with every new feature added.
#2about 5 minutes
How good intentions lead to broken legacy projects
Projects become legacy messes over time because initial technology and pattern choices are made with incomplete information about the future.
#3about 2 minutes
Adopting a guerrilla warfare mindset for refactoring
Instead of negotiating with an unmaintainable system, declare a war of attrition to subvert it by exploiting its reliance on web standards.
#4about 4 minutes
Creating modern code islands with web components
Web components allow you to build encapsulated features with private state and DOM, creating a safe space away from the legacy project's influence.
#5about 5 minutes
Weaponizing old and obscure browser features
The browser's commitment to backward compatibility means even ancient features like the BGCOLOR attribute can be used as tools to fight legacy constraints.
#6about 3 minutes
Injecting components using the document.write hack
When a legacy framework blocks custom elements, you can use the ancient `document.write` method inside a script tag to inject them directly into the HTML parser.
#7about 3 minutes
A step-by-step battle plan to defeat legacy monsters
Combine modern web components with old browser hacks to incrementally add new functionality, connect it via message passing, and ultimately replace the old system.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
26:34 MIN
Applying the strangler fig pattern to legacy apps
Interface Contracts in Microfrontend Architectures
00:27 MIN
The web's foundational principle of backward compatibility
Future-Proof CSS
17:33 MIN
Using web components to migrate legacy applications
Frameworkless: How to use Web-Components in production?
29:11 MIN
Project status, roadmap, and future web standards
Web-Fragments: incremental micro-frontends migration approach for enterprise
30:29 MIN
How to migrate legacy projects to a clean architecture
Building software that scales with Typescript
08:55 MIN
Identifying persistent challenges in modern web development
The year 3000, a brief history of Web Development
17:25 MIN
Contrasting minimalist code with modernizing legacy applications
The weekly developer show: Boosting Python with CUDA, CSS Updates & Navigating New Tech Stacks
00:53 MIN
The case for progressive enhancement in legacy applications
petite-vue - Progressively enhancing every application?
Featured Partners
Related Videos
The year 3000, a brief history of Web Development
Lorenzo Pieri
Frameworkless: How to use Web-Components in production?
Tobias Münch
Seven Myths, Three Reasons, One Goal
Stefan Priebsch
Interface Contracts in Microfrontend Architectures
Alexander Günsche
The Resilience of the World Wide Web
Niels Leenheer
Get ready for new features - the legacy challenge
Hans Hosea Schäfer
Best of the Worst – the most awful anti-features in JavaScript, ranked!
Peter Kröner
From boy scouting to redrawing the landscape
Tim te Beek
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Frontend-Entwickler
infomax websolutions GmbH
Grassau, Germany
Intermediate
Senior
CSS
HTML
JavaScript
TypeScript
Frontend Web Developer (JavaScript, React)
Die Socialisten
Vienna, Austria
Senior
Jest
React
Redux
JavaScript

Senior Frontend Developer - Typescript / Svelte - (f/m/x)
doinstruct Software GmbH
Berlin, Germany
Senior
GIT
JavaScript
TypeScript




Senior Angular Developer (m/w/d)
autoiXpert GmbH & Co. KG
Stuttgart, Germany
Senior
Node.js
Angular
MongoDB
TypeScript

Solution Architect (self-healing Micro-Frontend)
Westhouse Consulting GmbH
Intermediate
DevOps
Kotlin
Grafana
Openshift
Prometheus
+2

Frontend Web Developer - JavaScript | React | Angular | Vue.js | Bootstrap | Tailwind | HTML | CSS
Tech Solutions Gmbh
GIT
HTML
Vue.js