SlideShare a Scribd company logo
Secrets of the Web
Inspector
What’s the web inspector?
The web inspector is a panel available in every current
browser (yes, even IE!) that allows you to navigate
through the components that go into rendering the web
page you see.
It also has a bunch of nifty features to help achieve
better performance, find bugs, check mobile views, and
more!
A Brief History
— "View Source" / "Save as web page"
— Firebug - 2006 (RIP)
— Browsers start adding native developer tools
(2007-2008ish)
How to open the web inspector
— Mac Chrome: Cmd + Opt + I
— Safari: Cmd + Opt + I
— Firefox: Cmd + Opt + C
— Internet Explorer/Edge: F12
Alternately, you can almost always open it via right-
clicking and selecting “Inspect Element” from the
context menu.
If you can't find a panel
If I'm talking about something and you can't find it, ask
a neighbor and/or click on this thing:
Let’s browse some code
The Elements Panel
Let's go to http://clique-
inspect.glitch.me/ and then open
the web inspector like we just
talked about!
Here’s about what you’ll be
looking at when you open it up:
Editing the code
— Right click on elements on the page and select
"inspect element" to get to that element directly in
the "Elements" panel
— Double click on text or an an attribute to edit its
contents
— Right click on a section and select "Edit as HTML"
Editing Styles
In the right-hand sidebar, you can see the list of style
rules that apply to the selected element
— Click on properties to edit them
— The "+" at the top allows you to create new style rules
— ":hov" allows you to force hover/active/focus states
— ".cls" allows you to add new style classes easily on the
fly to keep track of a set of related properties
The Source Panel
Why is this different from the elements panel?
— Can also view non-HTML files, such as javascript, raw
CSS code, images included in page
— Can set "breakpoints" in script files that tell it to
pause at a certain point
— Lists all files requested as part of loading the page
Can you find the hidden cat photo in the sources list?
The Console
The console is a powerful debugging tool
— Displays errors
— Can also print messages from scripts being run to
output debug info
— You can also type javascript directly into the console
Try the command the console message suggests to you
and see what happens!
Responsive Testing
Open the responsive tools:
...and you'll see something like this
Responsive testing capabilities
— Change viewport size to known common resolutions
— Imitate device type (e.g. if some content is only show
to iOS users)
— Use "touch" event rather than "click"
A brief aside about the Safari web inspector and its unique tools
Safari is an Apple product, which means that it gets
some special tools for working with iOS! When an
iPhone/iPod Touch/iPad is connected via Bluetooth or
USB to your computer, you can use the web inspector to
look at the content of the browser on your phone.
The iOS Simulator
Apple also makes a simulator application that comes
packaged with their coding suite called Xcode, which
can imitate all Apple devices, from watch to iPad.
Windows Testing
Internet Explorer/Edge has slightly different tools for
responsive device testing, which are under the
"Emulation" tab. Internet Explorer/Edge can imitate
other previous versions of IE, as well as emulate
Windows phones.
The Application Panel
Application Storage
The main use for this panel is to deal with cookies.
Cookies are the way that sites temporarily store data
about you and your choices in the browser.
If you're in Safari or Firefox, you'll find this under the
"Storage" tab.
View the cookies:
Examples of cookie usage:
— User login
— Online store shopping cart
— Remember that user has closed a one-time notice
You might want to clear cookies to reset a feature for
testing, for example.
Editing cookies
In the list of cookies for the test webpage, look for one
called username. Try double-clicking the value to edit
it, change it to your own name, and refresh the page to
see what happens!
The Audits Panel
Audits
Audits contains several
automated tests that you can run
on a website to check if it meets
certain lists of criteria. For
example, you can check Google’s
performance scores and whether
the site meets accessibility best
practices from the inspector
window, even if it’s a local site.
Performance Audits
For example, here’s a performance audit before setting
up caching; obviously not a great score because we
haven’t optimized the site yet.
Accessibility Audits
Here you can see the accessibility data for the same
website—it’s not doing too bad, but there’s some items
we could tidy up.
Has limitations (you still need a human audit!) but good
to point out obvious problems
Some example accessibility audit results
More hidden tools
Where to find more tools
Animation Tracking
Geolocation Sensor Editing
Before this, you'd need a proxy server to test how your
site would look with different geolocation data, but you
can spoof it with the tools in Chrome.
Interesting note: Safari and Firefox don't have this
feature, but IE does (under the bottom tab, "Emulation")
Example of the Geolocation panel
Layers
The Layers panel will show you where all the
components on the page are, regardless of whether
they're currently visible or not
Ex. go to the example page, and you can see that it
shows where the hover effect on the button is, even
when it's not visible—this is great for debugging
Example of the Layers panel
Network Throttling
If a client has concerns about mobile performance,
Chrome can "throttle" your network, which is to say
pretend it's operating under worse conditions to test
performance.
...and even more?
— New features added all the time in Chrome
— Firefox just rolled Firebug into its native suite of
tools, pointing to more ahead
— Try the Safari Technology Preview for cutting-edge
Safari tools

More Related Content

What's hot

Presentation searching oracle database 11g
Presentation    searching oracle database 11gPresentation    searching oracle database 11g
Presentation searching oracle database 11g
xKinAnx
 
Scopidea defect
Scopidea defectScopidea defect
Scopidea defect
Vivek Bhardwaj
 
Jan.11 Tuesday Tech Tip
Jan.11 Tuesday Tech TipJan.11 Tuesday Tech Tip
Jan.11 Tuesday Tech Tip
Atlantic County Library System
 
Automating with selenium2
Automating with selenium2Automating with selenium2
Automating with selenium2
mindqqa
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using seleniummindqqa
 
SAP and Browser settings- Support
SAP and Browser settings- SupportSAP and Browser settings- Support
SAP and Browser settings- Support
otchmarz
 
MacBook Air Reference Guide
MacBook Air Reference GuideMacBook Air Reference Guide
MacBook Air Reference Guide
Mike Glennon
 
How to Fix Google Chrome Crashes
How to Fix Google Chrome CrashesHow to Fix Google Chrome Crashes
How to Fix Google Chrome Crashes
Vikas Medhekar
 
Preparing for e-Books - revised 10-12
Preparing for e-Books - revised 10-12Preparing for e-Books - revised 10-12
Preparing for e-Books - revised 10-12
Lincoln City Libraries
 
How to video blog your math lessons
How to video blog your math lessonsHow to video blog your math lessons
How to video blog your math lessonsmlabuski
 
4 andrii kudiurov - web application security 101
4   andrii kudiurov - web application security 1014   andrii kudiurov - web application security 101
4 andrii kudiurov - web application security 101
Ievgenii Katsan
 
Slide Share Manual
Slide Share ManualSlide Share Manual
Slide Share Manualguest5d18de
 
How I got my First CVE
How I got my First CVE How I got my First CVE
How I got my First CVE
nullowaspmumbai
 
Verify Login functionality of Yahoo mail using Selenium WebDriver methods
Verify Login functionality of Yahoo mail using Selenium WebDriver methodsVerify Login functionality of Yahoo mail using Selenium WebDriver methods
Verify Login functionality of Yahoo mail using Selenium WebDriver methods
metaforum technologies
 
Curriculum mac book training
Curriculum mac book trainingCurriculum mac book training
Curriculum mac book trainingmelissaroberts281
 
Enterprising JavaFX
Enterprising JavaFXEnterprising JavaFX
Enterprising JavaFX
Richard Bair
 
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensionsJoomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensionsChanratha Sorn
 
Devices on the Web (2.0)
Devices on the Web (2.0)Devices on the Web (2.0)
Devices on the Web (2.0)
Gurpreet Singh
 
jQuery Proven Performance Tips & Tricks
jQuery Proven Performance Tips & TricksjQuery Proven Performance Tips & Tricks
jQuery Proven Performance Tips & Tricks
Addy Osmani
 
Join the darkside: Selenium testing with Nightwatch.js
Join the darkside: Selenium testing with Nightwatch.jsJoin the darkside: Selenium testing with Nightwatch.js
Join the darkside: Selenium testing with Nightwatch.js
Seth McLaughlin
 

What's hot (20)

Presentation searching oracle database 11g
Presentation    searching oracle database 11gPresentation    searching oracle database 11g
Presentation searching oracle database 11g
 
Scopidea defect
Scopidea defectScopidea defect
Scopidea defect
 
Jan.11 Tuesday Tech Tip
Jan.11 Tuesday Tech TipJan.11 Tuesday Tech Tip
Jan.11 Tuesday Tech Tip
 
Automating with selenium2
Automating with selenium2Automating with selenium2
Automating with selenium2
 
Test automation using selenium
Test automation using seleniumTest automation using selenium
Test automation using selenium
 
SAP and Browser settings- Support
SAP and Browser settings- SupportSAP and Browser settings- Support
SAP and Browser settings- Support
 
MacBook Air Reference Guide
MacBook Air Reference GuideMacBook Air Reference Guide
MacBook Air Reference Guide
 
How to Fix Google Chrome Crashes
How to Fix Google Chrome CrashesHow to Fix Google Chrome Crashes
How to Fix Google Chrome Crashes
 
Preparing for e-Books - revised 10-12
Preparing for e-Books - revised 10-12Preparing for e-Books - revised 10-12
Preparing for e-Books - revised 10-12
 
How to video blog your math lessons
How to video blog your math lessonsHow to video blog your math lessons
How to video blog your math lessons
 
4 andrii kudiurov - web application security 101
4   andrii kudiurov - web application security 1014   andrii kudiurov - web application security 101
4 andrii kudiurov - web application security 101
 
Slide Share Manual
Slide Share ManualSlide Share Manual
Slide Share Manual
 
How I got my First CVE
How I got my First CVE How I got my First CVE
How I got my First CVE
 
Verify Login functionality of Yahoo mail using Selenium WebDriver methods
Verify Login functionality of Yahoo mail using Selenium WebDriver methodsVerify Login functionality of Yahoo mail using Selenium WebDriver methods
Verify Login functionality of Yahoo mail using Selenium WebDriver methods
 
Curriculum mac book training
Curriculum mac book trainingCurriculum mac book training
Curriculum mac book training
 
Enterprising JavaFX
Enterprising JavaFXEnterprising JavaFX
Enterprising JavaFX
 
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensionsJoomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensions
 
Devices on the Web (2.0)
Devices on the Web (2.0)Devices on the Web (2.0)
Devices on the Web (2.0)
 
jQuery Proven Performance Tips & Tricks
jQuery Proven Performance Tips & TricksjQuery Proven Performance Tips & Tricks
jQuery Proven Performance Tips & Tricks
 
Join the darkside: Selenium testing with Nightwatch.js
Join the darkside: Selenium testing with Nightwatch.jsJoin the darkside: Selenium testing with Nightwatch.js
Join the darkside: Selenium testing with Nightwatch.js
 

Similar to Secrets of the web inspector

Beyond the Basics, Debugging with Firebug and Web Inspector
Beyond the Basics, Debugging with Firebug and Web InspectorBeyond the Basics, Debugging with Firebug and Web Inspector
Beyond the Basics, Debugging with Firebug and Web Inspector
Steven Roussey
 
Google Chrome DevTools features overview
Google Chrome DevTools features overviewGoogle Chrome DevTools features overview
Google Chrome DevTools features overview
Oleksii Prohonnyi
 
Stepin evening presented
Stepin evening presentedStepin evening presented
Stepin evening presentedVijayan Reddy
 
BDD with SpecFlow and Selenium
BDD with SpecFlow and SeleniumBDD with SpecFlow and Selenium
BDD with SpecFlow and Selenium
Liraz Shay
 
AtlasCamp 2011 - Five Strategies to Accelerate Plugin Development
AtlasCamp 2011 - Five Strategies to Accelerate Plugin DevelopmentAtlasCamp 2011 - Five Strategies to Accelerate Plugin Development
AtlasCamp 2011 - Five Strategies to Accelerate Plugin Developmentmrdon
 
Interface Usability - Adding Schweppervescence
Interface Usability - Adding SchweppervescenceInterface Usability - Adding Schweppervescence
Interface Usability - Adding Schweppervescence
SSW
 
Plug-in Architectures
Plug-in ArchitecturesPlug-in Architectures
Plug-in Architectureselliando dias
 
Web accessibility testing methodologies, tools and tips
Web accessibility testing methodologies, tools and tipsWeb accessibility testing methodologies, tools and tips
Web accessibility testing methodologies, tools and tips
Henny Swan
 
How Can You Maximize Efficiency with Inspect Element on iPhone_.pdf
How Can You Maximize Efficiency with Inspect Element on iPhone_.pdfHow Can You Maximize Efficiency with Inspect Element on iPhone_.pdf
How Can You Maximize Efficiency with Inspect Element on iPhone_.pdf
kalichargn70th171
 
Grasping The LightSwitch Paradigm
Grasping The LightSwitch ParadigmGrasping The LightSwitch Paradigm
Grasping The LightSwitch Paradigm
Andrew Brust
 
Joomla Day Austin Part 4
Joomla Day Austin Part 4Joomla Day Austin Part 4
Joomla Day Austin Part 4
Kyle Ledbetter
 
Web Test Automation Framework - IndicThreads Conference
Web Test Automation Framework  - IndicThreads ConferenceWeb Test Automation Framework  - IndicThreads Conference
Web Test Automation Framework - IndicThreads Conference
IndicThreads
 
C# Security Testing and Debugging
C# Security Testing and DebuggingC# Security Testing and Debugging
C# Security Testing and Debugging
Rich Helton
 
Selenium training in chennai
Selenium training in chennaiSelenium training in chennai
Selenium training in chennai
Thecreating Experts
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
Thecreating Experts
 
Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)
Mikkel Flindt Heisterberg
 
Techniques For A Modern Web UI (With Notes)
Techniques For A Modern Web UI (With Notes)Techniques For A Modern Web UI (With Notes)
Techniques For A Modern Web UI (With Notes)
patrick.t.joyce
 
Improving Drupal Performances
Improving Drupal PerformancesImproving Drupal Performances
Improving Drupal Performances
Vladimir Ilic
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testing
Sarah Elson
 
ID E's features
ID E's featuresID E's features
ID E's features
wajahat Gul
 

Similar to Secrets of the web inspector (20)

Beyond the Basics, Debugging with Firebug and Web Inspector
Beyond the Basics, Debugging with Firebug and Web InspectorBeyond the Basics, Debugging with Firebug and Web Inspector
Beyond the Basics, Debugging with Firebug and Web Inspector
 
Google Chrome DevTools features overview
Google Chrome DevTools features overviewGoogle Chrome DevTools features overview
Google Chrome DevTools features overview
 
Stepin evening presented
Stepin evening presentedStepin evening presented
Stepin evening presented
 
BDD with SpecFlow and Selenium
BDD with SpecFlow and SeleniumBDD with SpecFlow and Selenium
BDD with SpecFlow and Selenium
 
AtlasCamp 2011 - Five Strategies to Accelerate Plugin Development
AtlasCamp 2011 - Five Strategies to Accelerate Plugin DevelopmentAtlasCamp 2011 - Five Strategies to Accelerate Plugin Development
AtlasCamp 2011 - Five Strategies to Accelerate Plugin Development
 
Interface Usability - Adding Schweppervescence
Interface Usability - Adding SchweppervescenceInterface Usability - Adding Schweppervescence
Interface Usability - Adding Schweppervescence
 
Plug-in Architectures
Plug-in ArchitecturesPlug-in Architectures
Plug-in Architectures
 
Web accessibility testing methodologies, tools and tips
Web accessibility testing methodologies, tools and tipsWeb accessibility testing methodologies, tools and tips
Web accessibility testing methodologies, tools and tips
 
How Can You Maximize Efficiency with Inspect Element on iPhone_.pdf
How Can You Maximize Efficiency with Inspect Element on iPhone_.pdfHow Can You Maximize Efficiency with Inspect Element on iPhone_.pdf
How Can You Maximize Efficiency with Inspect Element on iPhone_.pdf
 
Grasping The LightSwitch Paradigm
Grasping The LightSwitch ParadigmGrasping The LightSwitch Paradigm
Grasping The LightSwitch Paradigm
 
Joomla Day Austin Part 4
Joomla Day Austin Part 4Joomla Day Austin Part 4
Joomla Day Austin Part 4
 
Web Test Automation Framework - IndicThreads Conference
Web Test Automation Framework  - IndicThreads ConferenceWeb Test Automation Framework  - IndicThreads Conference
Web Test Automation Framework - IndicThreads Conference
 
C# Security Testing and Debugging
C# Security Testing and DebuggingC# Security Testing and Debugging
C# Security Testing and Debugging
 
Selenium training in chennai
Selenium training in chennaiSelenium training in chennai
Selenium training in chennai
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
 
Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)Plug yourself in and your app will never be the same (1 hr edition)
Plug yourself in and your app will never be the same (1 hr edition)
 
Techniques For A Modern Web UI (With Notes)
Techniques For A Modern Web UI (With Notes)Techniques For A Modern Web UI (With Notes)
Techniques For A Modern Web UI (With Notes)
 
Improving Drupal Performances
Improving Drupal PerformancesImproving Drupal Performances
Improving Drupal Performances
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testing
 
ID E's features
ID E's featuresID E's features
ID E's features
 

Recently uploaded

ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
Himani415946
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
TristanJasperRamos
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
ShahulHameed54211
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 

Recently uploaded (16)

ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 

Secrets of the web inspector

  • 1. Secrets of the Web Inspector
  • 2. What’s the web inspector? The web inspector is a panel available in every current browser (yes, even IE!) that allows you to navigate through the components that go into rendering the web page you see. It also has a bunch of nifty features to help achieve better performance, find bugs, check mobile views, and more!
  • 3. A Brief History — "View Source" / "Save as web page" — Firebug - 2006 (RIP) — Browsers start adding native developer tools (2007-2008ish)
  • 4. How to open the web inspector — Mac Chrome: Cmd + Opt + I — Safari: Cmd + Opt + I — Firefox: Cmd + Opt + C — Internet Explorer/Edge: F12 Alternately, you can almost always open it via right- clicking and selecting “Inspect Element” from the context menu.
  • 5. If you can't find a panel If I'm talking about something and you can't find it, ask a neighbor and/or click on this thing:
  • 7. The Elements Panel Let's go to http://clique- inspect.glitch.me/ and then open the web inspector like we just talked about! Here’s about what you’ll be looking at when you open it up:
  • 8. Editing the code — Right click on elements on the page and select "inspect element" to get to that element directly in the "Elements" panel — Double click on text or an an attribute to edit its contents — Right click on a section and select "Edit as HTML"
  • 9. Editing Styles In the right-hand sidebar, you can see the list of style rules that apply to the selected element — Click on properties to edit them — The "+" at the top allows you to create new style rules — ":hov" allows you to force hover/active/focus states — ".cls" allows you to add new style classes easily on the fly to keep track of a set of related properties
  • 11. Why is this different from the elements panel? — Can also view non-HTML files, such as javascript, raw CSS code, images included in page — Can set "breakpoints" in script files that tell it to pause at a certain point — Lists all files requested as part of loading the page Can you find the hidden cat photo in the sources list?
  • 13. The console is a powerful debugging tool — Displays errors — Can also print messages from scripts being run to output debug info — You can also type javascript directly into the console Try the command the console message suggests to you and see what happens!
  • 16. ...and you'll see something like this
  • 17. Responsive testing capabilities — Change viewport size to known common resolutions — Imitate device type (e.g. if some content is only show to iOS users) — Use "touch" event rather than "click"
  • 18. A brief aside about the Safari web inspector and its unique tools Safari is an Apple product, which means that it gets some special tools for working with iOS! When an iPhone/iPod Touch/iPad is connected via Bluetooth or USB to your computer, you can use the web inspector to look at the content of the browser on your phone.
  • 19. The iOS Simulator Apple also makes a simulator application that comes packaged with their coding suite called Xcode, which can imitate all Apple devices, from watch to iPad.
  • 20.
  • 21. Windows Testing Internet Explorer/Edge has slightly different tools for responsive device testing, which are under the "Emulation" tab. Internet Explorer/Edge can imitate other previous versions of IE, as well as emulate Windows phones.
  • 23. Application Storage The main use for this panel is to deal with cookies. Cookies are the way that sites temporarily store data about you and your choices in the browser. If you're in Safari or Firefox, you'll find this under the "Storage" tab.
  • 25. Examples of cookie usage: — User login — Online store shopping cart — Remember that user has closed a one-time notice You might want to clear cookies to reset a feature for testing, for example.
  • 26. Editing cookies In the list of cookies for the test webpage, look for one called username. Try double-clicking the value to edit it, change it to your own name, and refresh the page to see what happens!
  • 28. Audits Audits contains several automated tests that you can run on a website to check if it meets certain lists of criteria. For example, you can check Google’s performance scores and whether the site meets accessibility best practices from the inspector window, even if it’s a local site.
  • 29. Performance Audits For example, here’s a performance audit before setting up caching; obviously not a great score because we haven’t optimized the site yet.
  • 30. Accessibility Audits Here you can see the accessibility data for the same website—it’s not doing too bad, but there’s some items we could tidy up. Has limitations (you still need a human audit!) but good to point out obvious problems
  • 31. Some example accessibility audit results
  • 33. Where to find more tools
  • 35. Geolocation Sensor Editing Before this, you'd need a proxy server to test how your site would look with different geolocation data, but you can spoof it with the tools in Chrome. Interesting note: Safari and Firefox don't have this feature, but IE does (under the bottom tab, "Emulation")
  • 36. Example of the Geolocation panel
  • 37. Layers The Layers panel will show you where all the components on the page are, regardless of whether they're currently visible or not Ex. go to the example page, and you can see that it shows where the hover effect on the button is, even when it's not visible—this is great for debugging
  • 38. Example of the Layers panel
  • 39. Network Throttling If a client has concerns about mobile performance, Chrome can "throttle" your network, which is to say pretend it's operating under worse conditions to test performance.
  • 40. ...and even more? — New features added all the time in Chrome — Firefox just rolled Firebug into its native suite of tools, pointing to more ahead — Try the Safari Technology Preview for cutting-edge Safari tools