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.
Matching moments
48:43 MIN
Implementing code splitting and lazy loading for faster initial loads
How Your Bundle Size Affects The Climate
08:01 MIN
Why developers and businesses choose to use React
React and the power of visualisation
03:03 MIN
Building with familiar React APIs and real CSS
Lynx: Native for More
05:40 MIN
How Facebook's UI challenges led to React's creation
React and the power of visualisation
17:13 MIN
Competing with built-in browser AI user interfaces
Exploring the Future of Web AI with Google
10:08 MIN
Implementing code splitting for on-demand loading
Challenges of building React and React Native apps
06:28 MIN
A full-stack architecture for streaming AI responses
Streaming AI Responses in Real-Time with SSE in Next.js & NestJS
1:04:01 MIN
Exploring modern tools for web interaction and analysis
WeAreDevelopers LIVE - the weekly developer show with Chris Heilmann and Daniel Cranney
Featured Partners
Related Videos
Snappy UI needs no Single-Page Application
Clemens Helm
Accessibility in React Application
Julia Undeutsch
Catching up on the basics you don't really need that much code
Chris Heilmann
Machine learning in the browser with TensorFlowjs
Håkan Silfvernagel
A journey of a long list in React
Adam Klein
Typescript, React and Atomic Design - a match made in heaven
Nathalia Rus
From ML to LLM: On-device AI in the Browser
Nico Martin
Building Interactive Async UI with React 19 and Ariakit
Aurora Scharff
From learning to earning
Jobs that call for the skills explored in this talk.


Senior Backend Engineer – AI Integration (m/w/x)
chatlyn GmbH
Vienna, Austria
Senior
JavaScript
AI-assisted coding tools


Développeur Frontend React.Js - IA & Machine Learning - Remote H/F
OCTOPUS IT
Paris, France
Remote
€50-70K
Intermediate
React
Python
Docker
+4
Frontend Developer JavaScript/TypeScript, React (m/f/d), AI-Based Cancer Diagnostics
Mindpeak GmbH
Hamburg, Germany
Intermediate
API
Linux
WebGL
React
Docker
+3
(Senior) Frontend Developer (JavaScript/TypeScript, React)
Mindpeak
Hamburg, Germany
Senior
API
Linux
WebGL
React
Docker
+3
Senior Web Applications Developer - JavaScript/React/HTML
Adaptive Financial Consulting
Barcelona, Spain
CSS
HTML
React
JavaScript
TypeScript


