Eliran Natan
Build UIs that learn - Discover the powerful combination of UI and AI
#1about 1 minute
The performance problem of large single-page applications
Large component codebases in single-page applications can lead to significant loading delays and a poor user experience.
#2about 3 minutes
Using lazy loading and prefetching to improve performance
React's lazy loading API defers component loading, and dynamic imports can prefetch resources before they are explicitly requested by the user.
#3about 3 minutes
Predicting user actions with machine learning sequences
User navigation can be modeled as a sequence prediction problem, where a machine learning model predicts the next click based on past behavior.
#4about 2 minutes
Designing a neural network for click prediction
An LSTM (Long Short-Term Memory) neural network is well-suited for sequence prediction, using one-hot encoding to represent user actions without false correlations.
#5about 1 minute
Implementing the prediction model with TensorFlow.js
TensorFlow.js allows for building and running machine learning models directly in the browser using a sequential API to stack network layers.
#6about 1 minute
Training the model asynchronously with user data
The model is trained asynchronously in the background using the `fit` command, allowing the application to adapt to user behavior over time without blocking the UI.
#7about 3 minutes
Architecting a solution with the React Context API
A centralized architecture using two React contexts, one for prediction logic and one for prefetching, decouples the prediction source from the prefetching action.
#8about 3 minutes
Implementing the context-based prefetching logic in code
A custom `PredictionLink` component uses the `useContext` hook to listen for predictions and trigger prefetching via the prefetch context.
#9about 3 minutes
Summary of the intelligent prefetching technique
Combining React's code splitting with a browser-based machine learning predictor creates a powerful system for improving application performance by prefetching resources.
Related jobs
Jobs that call for the skills explored in this talk.
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
ROSEN Technology and Research Center GmbH
Osnabrück, Germany
Senior
TypeScript
React
+3
Matching moments
04:57 MIN
Increasing the value of talk recordings post-event
Cat Herding with Lions and Tigers - Christian Heilmann
01:32 MIN
Organizing a developer conference for 15,000 attendees
Cat Herding with Lions and Tigers - Christian Heilmann
03:28 MIN
Why corporate AI adoption lags behind the hype
What 2025 Taught Us: A Year-End Special with Hung Lee
02:44 MIN
Rapid-fire thoughts on the future of work
What 2025 Taught Us: A Year-End Special with Hung Lee
03:15 MIN
The future of recruiting beyond talent acquisition
What 2025 Taught Us: A Year-End Special with Hung Lee
04:27 MIN
Moving beyond headcount to solve business problems
What 2025 Taught Us: A Year-End Special with Hung Lee
03:38 MIN
Balancing the trade-off between efficiency and resilience
What 2025 Taught Us: A Year-End Special with Hung Lee
11:10 MIN
The only frontend stack that truly matters
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
Featured Partners
Related Videos
The Journey of a Pixel in a React Application
Shem Magnezi
Building Interactive Async UI with React 19 and Ariakit
Aurora Scharff
Catching up on the basics you don't really need that much code
Chris Heilmann
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
Chris Heilmann, Daniel Cranney & Jan Deppisch
Multiple Ships to the Island - Micro Frontends & Island Architectures
Florian Rappl
Accessibility in React Application
Julia Undeutsch
Snappy UI needs no Single-Page Application
Clemens Helm
A journey of a long list in React
Adam Klein
Related Articles
View all articles



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

Twin.Link GmbH
Osnabrück, Germany
Intermediate
Senior
React
TypeScript


Mindpeak
Hamburg, Germany
Intermediate
API
Linux
WebGL
React
Docker
+3

Harmonia Labs
Málaga, Spain
€24K
API
React
Python
JavaScript
+2


Top web
Remote
£145-187K
Intermediate
React
JavaScript
TypeScript


Launchly Pro
Remote
£33K
API
REST
React
+3
