Male chrome developer tool (devtools) is the web creation and debugging toolbar of Google Chrome. Devtools provides access to the elements that build web pages. You can use devtools to solve layout problems, check and modify CSS, set JavaScript breakpoints, check code for optimization, and so on. Devtools is free and has been built into Chrome browser. So if you have chrome, you already have it. In this article, you can learn what tools are and how to use them to improve the WordPress website.
There are many ways to open tools. Select the chrome menu, select tools, and then select developer tools. Right click the element on the screen and select check element (my favorite method). CTRL + Shift + I (PC) | CMD + opt + I (MAC) devtools window the tools window has two panels. Contains tools that can be used simultaneously. Let’s look at the tools. The first tool has eight tool groups. Tools include: The second part of the resource audit console of the cluster network source timeline configuration file includes:
There are several ways to view the style calculated event listener DOM (document object model) breakpoint properties tool. You can resize the window to create space. You can also reposition the window to the right of the screen, providing a split screen with tools and another with websites. This panel displays the DOM tree representing the HTML elements of the page, and all elements can be checked or edited. View CSS adjustments in real time. Click a node (arrow or triangle) to open and collapse the panel for easier viewing and navigation. The DOM tree view shows the current state of the tree instead of the original HTML (for example, it may have been modified by JavaScript).
When you hover over an element in the tree view, the element in the web page is highlighted. Displays information such as font style, image size, and so on. When you click one of the elements, the CSS appears in the right pane. You can select a style here and modify the font, color, size, margin, border, down jacket, etc. The footer shows the movement path, and can be tracked backwards if necessary. You can edit an element by simply clicking on it and entering changes. Press enter to see the changes take effect. For example, the current width of the image is 600 pixels. Select the width, enter a new value, and press enter.
The image changes to the new size immediately. To change the style of a font, simply select the font and select what you want to change in the style window on the right. You can also drag the male element and place it in a new location to change the page layout. Drag the male div to move the latest comment to the latest post. Right click to provide a new feature set. You can view the status of various elements, modify them to HTML, set splitting, copy CSS paths, and so on. You can also right-click and delete a node. Because it’s so simple, I’m almost afraid.
We used this tool to find the image size and check the code snippet. The network panel displays the resources requested and ed on the website. Real time display as graphics. Determining which elements take the longest to can help you understand the problems that need to be modified to optimize the page. You can filter and display various view and chart types, such as waterfalls. After recording network activity
Save for analysis. View the details of the resource. Details are as follows: HTTP request and response headers – displays the request URL, HTTP method, response status code, and lists the HTTP response and request headers and their values and query string parameters. Resource preview – displays a preview of images and JSON resources. HTTP response – displays the contents of unformatted resources. Cookie name and value – displays the cookies sent and deleted from the HTTP request and response hair of the resource. Websocket messages – displays messages sent or received over a websocket connection. Resource network timing – displays the time chart required for the network phase related to the resource load. Waterfall view is a good way to see how long it takes to load each element from the beginning of the request to the last byte of the element. By determining which elements take the most time, you can better understand what needs to be adjusted.
You can save network data for future analysis. You can use the source panel to view and debug the code that loads the page, such as JavaScript and scripts. You can pause, resume, run according to code steps, or pause under abnormal conditions. It contains basic code execution functions, which can skip a step, enter a step, stop and switch breakpoints. You can use breakpoints to debug JavaScript, DOM updates, and network calls. You can also set conditional breakpoints, and the expression can return true or false. Then, if the condition is met, the breakpoint pauses the code.
Beautiful printing function makes the folded code easier to read. This makes it easier to see where the breakpoint is placed. If this is not necessary, you can use the JSON based mapping format, that is, source mapping. Source mapping is created by thumbnails with this feature built in. Timeline the timeline panel displays the time required to load and use the page. Draw and print all events on the timeline. Displays resources such as JavaScript, style calculations, and redraws. You can log events and analyze them step by step. There are three modes:
Events – a list of all events configured by type. This shows the most time-consuming tasks. Frames – displays what should be done in each frame of the site’s rendering performance. For example, if a site renders at 60 frames per second, the completed tasks are displayed in 1 \/ 60 second. This includes loading scripts, layout coloring, event handling, etc. This allows you to view abnormal activity when the page is loaded. Memory – graphically displays memory usage over time. Displays all documents, nodes, and event listeners saved in memory. This helps determine the cause of the memory leak. Data male
Here, you can configure the running time and memory usage of web pages and applications. This shows where the resource is used. This is a good tool for optimizing code. Record three profile types. Collect JavaScript CPU configuration files – displays the runtime of JavaScript functions. Take a hip hop snapshot – displays the memory usage and distribution of JavaScript objects. Hip allocation history – records object allocations to show memory leaks over time. Resources can be checked using this panel. Displays information such as indexeddb, web SQL database, application cache cookies, local and session repositories. You can also examine visual resources, such as fonts, images, and style sheets.
Using the indexeddb tab
You can check the indexeddb database and object repository to view and delete records. You can run SQL commands and view the results in tabular format. After you enter a command, prompts are provided for the table name, command, and section. The cookies tab displays information about cookies generated by HTTP or JavaScript. It can be deleted individually or in groups. Chrome caches application resources. The application cache tab is used to view the status of resources. It also displays the URL, resource type, and size of the resource. Using the local and session storage panel, you can view, create, delete, and edit local and session storage key \/ value pairs created by the storage API. The audit panel analyzes the page when loading the page and suggests modifications to optimize the page loading. There are two types of audits that divide information into two categories: network utilization and web page performance. You can run two audits at the same time, or you can run only the required audits. You can run the audit in the current state of the page or when you reload and load the page. Although not as detailed as Google pagespeed insights, it provides enough information to modify fruits that hang less. After pagespeed insights, my page looks good, but I provide some information about my site, which is not provided by insights. Console maleconsole is used for debugging. You can record diagnostics, enter commands, evaluate JavaScript, create JavaScript profiles, and more. You can write information to the console through the command line. The command line allows you to use functions to select and check elements in the DOM, monitor events, stop and start the configurator. Device mode one of my favorite functions is device mode. It can be accessed using the small button on the left side of the menu element. Device mode allows you to choose from 23 different popular mobile devices (kindle fire, multiple iPhones, multiple galaxy, laptop, etc.) and view the performance and response of the website on these devices. You can also drag the screen to create a custom screen size. The cursor mimics the fingertip, and the screen and mouse react the same as the fingers. You can also create your own custom device in the setup screen. You can also choose the network type (3G, 4G, Wi Fi, etc.) to analyze the performance and response of the site under various networks and speeds. Drawer there is a drawer at the lower end of the picture. You can turn it on or off using the > button on the right side of the toolbar. Drawers include: Console – console command line. This allows you to use the console when using other panels. Search – find all sources. You can choose to ignore case and search for regular expressions. Simulation – tools and settings for device mode. This includes functions such as accelerometers and geographical coordinates. Rendering – displays rendering features such as FPS meters, composite layer borders, and so on. The biggest advantage of this feature is the potential bottleneck. Some panels do not contain access to these tools, so it is best to keep them in a drawer. Chrome developer tools is an amazing web creation and debugging toolbar that helps improve websites. You can quickly drag and drop elements to change the site layout, solve memory leaks, solve page loading problems, view websites from almost all mobile devices and screen sizes, and so on. This overview provides an overview of the functionality of these tools. Best of all, it’s built into chrome, so you can everything
That is, there is no need to load. I’d like to hear your opinion. Do you use chrome developer tools? What is your favorite feature? What do you use most? Are there any tips for using tools? Please tell me your opinion.