-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevTools.html
More file actions
69 lines (69 loc) · 3.17 KB
/
devTools.html
File metadata and controls
69 lines (69 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="assets/img/icon-logo.ico" type="image/x-icon">
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/question.css">
<title>Chrome DevTools</title>
<script src="assets/js/devTools.js"></script>
</head>
<body>
<header class="header">
<!-- Navigation -->
<nav class="nav-ctn">
<section>
<img class="logo" src="assets/img/WebsiteLogo.svg" alt="Logo">
</section>
<ul id="menu" class="menu">
<li><img class="hamburger" src="assets/img/NavbarDropDownIcon.svg" onclick="hamburger()" alt="NavbarDropDownIcon"></li>
</ul>
</nav>
<!-- Mobile Navigation -->
<ul class="menu" id="hamburger">
</ul>
</header>
<script src="assets/js/menu.js"></script>
<main>
<h1>The Chrome DevTools Tips</h1>
<section class="exercise">
<h2>Performance and Memory Leaks</h2>
<h3>We have 3 great tools for finding memory leaks in Chrome:</h3>
<ul>
<li>Chrome Task Manager</li>
<li>Performance Panel</li>
<li>Memory Panel</li>
</ul>
<button id="createLi" onclick="createLi()">Create 10000 Li</button>
<button onclick="calculate()">Calculate For Loop</button>
<button onclick="logConsole()">Console Log</button>
<button onclick="logVariables()">Log Variables</button>
<p id="result" style="color:cadetblue;font-size: x-large;"></p>
<p id="result2" style="color:cadetblue;font-size: large;"></p>
</section>
<section class="exercise">
<h2>Elements</h2>
<ul>
<li>by press H , we can hide and unhide elements</li>
<li>by press Delete , we can Delete elements</li>
<li>Current selected element refers to the $0 on Console Panel.
and modify like '$0.innerHTML="hi";' and $1 refers to an element before the current one and so on</li>
<li>on Computed Panel, we find the winning CSS style and why to win</li>
<li>DOM Breakpoints for finding problem of unwanted changing</li>
</ul>
</section>
<section class="exercise">
<h3>Tips</h3>
<ul>
<li>By click on 3 dots beside Console Panel, click on Rendering and Paint flashing and ...</li>
<li>By hold Shift key on Network Panel,the green and red color appear</li>
<li>For keep our changes after Refresh page, we go to Sources Panel on Overrides</li>
<li>After use Performance, we can go to Sources and see the Runtimes of each items</li>
<li>On Sources, we add Conditional Breakpoint with Holding Ctrl key + Click</li>
<li>On Sources,we have IDE, if we add folders to Filesystem tabs</li>
</ul>
</section>
</main>
</body>
</html>