@saltnburnem
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
https://www.twitch.tv/saltnburnem313
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
A/B testing, otherwise known as split testing, is the process of testing two different versions of a web page or product feature against the original, existing version.
- Talia Nassi
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
Username
Password
Login
provider
Create Account
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
Username
Password
Login
provider
Create Account
Username
Password
Login
provider
Create
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
❗️ Baseline before experiment! ❗️
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
Username
Password
Login
provider
Create Account
Username
Password
Login
provider
Create
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
Username
Password
Login
provider
Create Account
Username
Password
Login
provider
Create
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
// get treatment
let treatment = client.getTreatment('css_demo');
// get features to flip based upon CSS classes
const featureA = document.querySelectorAll('.a');
const featureB = document.querySelectorAll('.b');
if (treatment === 'on') {
featureB.forEach(element => {
element.classList.add('hide')
})
} else if (treatment === 'off') {
featureA.forEach(element => {
element.classList.add('hide')
})
} else {
console.error('Error connecting to Split')
// default rule here
featureA.forEach(element => {
element.classList.add('hide')
})
}
});
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
#DeveloperCommunity | #MIDevFest2023
@saltnburnem
Resources
https://bit.ly/css-feature-flags
#DeveloperCommunity | #MIDevFest2023