SlideShare a Scribd company logo
Dicking Around With The DOM
& Chrome Dev Tools
Who The Hell Am I?
SEO Manager
At Blue Array
@MarkSEOsborne
Real creative twitter handle
right?
What Dodgy Looking People Do I Have To Work With?
So for any one that has
guessed the rather bad
joke in the title of this
talk
Don't worry to much as
there won't be any jokes
about these guys
Dicking around with the dom and chrome dev tools - Mark Osborne
Or that bloody
bogies game!
bogies
Bogies
Bogies!
BOGIES!
Sorry
couldn’t
resist
So back to the
main reason we
all come to these
SEO events...
Some real useful new
SEO insights and free
pizza and beer :)
Thanks Sistrix
Let’s get
in to it
And start by
answering a
few key
questions
Firstly
What is the DOM?
Not this DOM
Or this DOM!
DOM actually stands for
Document Object Model
Simply it is a code
representation of what
you see on a page as it is
displayed in your
browser
And Is a middle
ground between your
page source code and
what you users see
when the page is fully
loaded
Dicking around with the dom and chrome dev tools - Mark Osborne
The DOM looks
different to the source
code. As additional
code and scripts are
injected into page after
it loads
Which means
there can be
problems on
your site that are
in the DOM
rather than in the
source code
Javascript makes
this a whole load
more fun, and
gives more issues
within the DOM
As dynamic scripts
load after and screw
things up.
But never fear...
Chrome Dev Tools is here
What is chrome dev
tools for those that
don’t know?
Chrome DevTools is a set of
web developer tools built
directly into the Google
Chrome browser.
And can help you edit pages
on-the-fly and diagnose
problems
In short right click on
any page and click
inspect, and Chrome
dev tools opens up
with the DOM
Dicking around with the dom and chrome dev tools - Mark Osborne
By dicking around
with chrome dev
tools there is some
amazing stuff you
can do
So what can you
do with it I hear
you cry!
Well you can solve your one
device blindness
(this is a new phrase I'm trying to make stick so go
with it)
One device blindness is
- basically only
focusing on the device
you are working on
and not any other
device types
For most us that
is a desktop or a
laptop
In case you
weren’t aware
we live in a
mobile first
world now
In Chrome Dev Tools
you can easily
change your viewport
to different device
types
It is real simple to do...
Dicking around with the dom and chrome dev tools - Mark Osborne
This is helpful when
checking parity between
mobile and desktop sites
Next...Getting Speedy
We all know fast sites are
a big SEO win
With Chrome Dev
Tools you can see
how quickly Google is
loading your site in
the DOM
You can see this stage
by stage as its load all
by clicking the
network tab
As well as all the
individual elements
in the sequence as
they’re loading in
the DOM
Dicking around with the dom and chrome dev tools - Mark Osborne
This is wonderful but
how do I see how
my mobile site
speed is doing?
Adjust the network
setting to disable cache
and set speed to slow
3G then hit command R
to refresh the page
Dicking around with the dom and chrome dev tools - Mark Osborne
From here you
can see your sites
load time at its
worst on mobile
You can even find the fixes for
your slow load time in CDT
(i'm sick of keep saying chrome dev tools so got lazy and
referring to it as CDT now :) )
You can
get a full
lighthouse
speed
report in
CDT
Choose audit from the
top navigation and hit
run an you’ll get a full
detailed lighthouse
report within CDT
Dicking around with the dom and chrome dev tools - Mark Osborne
Playing
hide and
seek in
the DOM
There could be
hidden information
within the CSS so
It’s best to check
that it not being
missed
How to seek for it
It’s real easy:
Open up CDT, hit
cmd F to open up
a search bar
From there enter one of the
two common CCS elements
that hide content:
display:none
visibility:hidden
CDT then highlights all of the
occurrences for you and you have
to find the important ones
Checking a
site all
secure and
locked down
In CDT there is a
whole security panel
which unsurprisingly
has all the site's
security information in
Shows you if you
have an SSL and if
there is any security
issues
The cool thing is if
you click links
through the site, in
the site panel in
CDT it show shows
you the security
status for individual
links
Dicking around with the dom and chrome dev tools - Mark Osborne
Switching up locations
A few months
ago Google
updated their
developer guides
with new news
That you are now able
to override your
location with CDT to
any custom location
and see how a page
recacts
Open up command
menu with
cmd+shift+p
Search and select:
show sensors
Choose a
location from the
Geolocation
dropdown
Dicking around with the dom and chrome dev tools - Mark Osborne
If you can’t find a
location you want from
drop down hit manage
button
Dicking around with the dom and chrome dev tools - Mark Osborne
Finally add in a name
and the latitude and
longitude for your
custom location
Dicking around with the dom and chrome dev tools - Mark Osborne
Writing xpath without
the headache
When your scraping
a site for a certain
element
Open up CDT and find
the element you want to
scrape then...
Right click > Copy >
Copy xpath
Dicking around with the dom and chrome dev tools - Mark Osborne
The xpath is copied
to your clipboard
ready to go in any
scraping tool
Xpath headache
Cured!
Checking if a site
is HTTP2 or not
Yeah sure I
know there
is a bunch of
plugins that
do this as
well
But CDT gives you
more detail and is
only a few more
clicks
Open up network
tab in CDT & hit
refresh
Then right click and
add in protocol
column
Watch the
waterfall load
and see if the
sites is HTTP 2
or not
Dicking around with the dom and chrome dev tools - Mark Osborne
Discovering old
unused code
Why do we want to find
unused code?
Most sites are littered with old unused
JS & CSS that is slowing them down
The coverage
report shows you
where the unused
code is
Open CDT click
the three dots
in the top right
and select
coverage from
drop down
And ta-dah you get all
the unused code loaded
Honorable mention
You can change the live
code on any page
And do fun things like
this...
Dicking around with the dom and chrome dev tools - Mark Osborne
Or more helpful things,
like seeing what a
change to the front end
of the site may look like
Dicking around with the dom and chrome dev tools - Mark Osborne
-The DOM is the bit between the
source code and what users see
-There is much more to CDT than you
think
-Mark’s puns are terrible
Get you thinking
hat on and start
dicking around
with the DOM and
CDT and see what
it can do
W
Thanks for listening, any questions?

More Related Content

PPTX
Jsp myeclipse
PPTX
How to create .exe file into .c file in C Language anyone Program (Marksheet ...
PPT
Hello world pascal tutorial
PPTX
ReadingSEO Master Deck - 1st August 2019
PPTX
Chrome DevTools
PDF
4-Step SEO Waltz: Tackle SEO Challenges Head-On
PPTX
Google Chrome DevTools features overview
PDF
Digging into your DevTools
Jsp myeclipse
How to create .exe file into .c file in C Language anyone Program (Marksheet ...
Hello world pascal tutorial
ReadingSEO Master Deck - 1st August 2019
Chrome DevTools
4-Step SEO Waltz: Tackle SEO Challenges Head-On
Google Chrome DevTools features overview
Digging into your DevTools

Similar to Dicking around with the dom and chrome dev tools - Mark Osborne (20)

PDF
Getting started with dev tools (4/10/17 DC)
PDF
Google Developer Day 2010 Japan: Google Chrome の Developer Tools (ミカイル ナガノフ, ...
PDF
SMX_DevTools_Monaco_2.pdf
PPTX
SearchLove Boston 2013_Will Critchlow_Technical SEO
PDF
Secrets of the web inspector
PDF
The Other Dev Tools
PDF
Getting started with dev tools (05 09-17, santa monica) upload
PPTX
Chrome Dev Summit Summary 2013 part 1 - what’s hot ?
PDF
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
PDF
Javascript SEO Devs and SEOs playing nicely
PPTX
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
PPTX
JavaScript SEO Ungagged 2019 Patrick Stox
PPTX
JavaScript SEO: Testing and Debugging for Non-Developers - Search Marketing S...
PDF
Getting started with dev tools (atl)
PPTX
Optimizing Browser Rendering
PDF
Crawling & Indexing for JavaScript Heavy Sites brightonSEO 2021
PPTX
Fast & Furious Responsive Design in Chrome DevTools
PDF
How to do a SEO Site Audit
PPTX
Edge of the Web
PDF
Using Chrome Dev Tools
Getting started with dev tools (4/10/17 DC)
Google Developer Day 2010 Japan: Google Chrome の Developer Tools (ミカイル ナガノフ, ...
SMX_DevTools_Monaco_2.pdf
SearchLove Boston 2013_Will Critchlow_Technical SEO
Secrets of the web inspector
The Other Dev Tools
Getting started with dev tools (05 09-17, santa monica) upload
Chrome Dev Summit Summary 2013 part 1 - what’s hot ?
Advanced Web Scraping or How To Make Internet Your Database #seoplus2018
Javascript SEO Devs and SEOs playing nicely
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
JavaScript SEO Ungagged 2019 Patrick Stox
JavaScript SEO: Testing and Debugging for Non-Developers - Search Marketing S...
Getting started with dev tools (atl)
Optimizing Browser Rendering
Crawling & Indexing for JavaScript Heavy Sites brightonSEO 2021
Fast & Furious Responsive Design in Chrome DevTools
How to do a SEO Site Audit
Edge of the Web
Using Chrome Dev Tools
Ad

Recently uploaded (20)

PDF
Master Fullstack Development Course in Chennai – Enroll Now!
PPTX
Ipsos+Protocols+Playbook+V1.2+(DEC2024)+final+IntClientUseOnly.pptx
PDF
EVOLUTION OF RURAL MARKETING IN INDIAN CIVILIZATION
PDF
AFCAT Syllabus 2026 Guide by Best Defence Academy in Lucknow.pdf
PPTX
UNIT 3 - 5 INDUSTRIAL PRICING.ppt x
PDF
Wondershare Filmora Crack Free Download 2025
PPTX
Assignment 2 Task 1 - How Consumers Use Technology and Its Impact on Their Lives
PDF
How a Travel Company Can Implement Content Marketing
PDF
You Need SEO for Your Business. Here’s Why..pdf
PPTX
Ranking a Webpage with SEO (And Tracking It with the Right Attribution Type a...
PPTX
Presentation - MindfulHeal Digital Ayurveda GTM & Marketing Plan.pptx
PDF
exceptionalinsights.group visitor traffic statistics 08-08-25
PPTX
Sumit Saxena IIM J Project Market segmentation.pptx
PPTX
Mastering eCommerce SEO: Strategies to Boost Traffic and Maximize Conversions
PDF
Pay-Per-Click Marketing: Strategies That Actually Work in 2025
PDF
E_Book_Customer_Relation_Management_0.pdf
PPTX
Your score increases as you pick a category, fill out a long description and ...
PDF
Mastering Content Strategy in 2025 ss.pdf
PDF
RC 14001 Certification: Enhancing ISO 14001 with EHS & Security Standards
PDF
Hidden gems in Microsoft ads with Navah Hopkins
Master Fullstack Development Course in Chennai – Enroll Now!
Ipsos+Protocols+Playbook+V1.2+(DEC2024)+final+IntClientUseOnly.pptx
EVOLUTION OF RURAL MARKETING IN INDIAN CIVILIZATION
AFCAT Syllabus 2026 Guide by Best Defence Academy in Lucknow.pdf
UNIT 3 - 5 INDUSTRIAL PRICING.ppt x
Wondershare Filmora Crack Free Download 2025
Assignment 2 Task 1 - How Consumers Use Technology and Its Impact on Their Lives
How a Travel Company Can Implement Content Marketing
You Need SEO for Your Business. Here’s Why..pdf
Ranking a Webpage with SEO (And Tracking It with the Right Attribution Type a...
Presentation - MindfulHeal Digital Ayurveda GTM & Marketing Plan.pptx
exceptionalinsights.group visitor traffic statistics 08-08-25
Sumit Saxena IIM J Project Market segmentation.pptx
Mastering eCommerce SEO: Strategies to Boost Traffic and Maximize Conversions
Pay-Per-Click Marketing: Strategies That Actually Work in 2025
E_Book_Customer_Relation_Management_0.pdf
Your score increases as you pick a category, fill out a long description and ...
Mastering Content Strategy in 2025 ss.pdf
RC 14001 Certification: Enhancing ISO 14001 with EHS & Security Standards
Hidden gems in Microsoft ads with Navah Hopkins
Ad

Dicking around with the dom and chrome dev tools - Mark Osborne