The Ner S To Chrome Developer Tools. Keyboard Shortcuts For Chrome Developer Tools Nots. Keyboard Shortcuts For Chrome Developer Tools Nots.Google has also ensured that developers like you have a great experience with Chrome. Google has worked hard to deliver a very fast, very stable, feature rich browsing experience for end users. On the pop-up box that shows up, make sure to check the box next to Open As Window.Google Chrome is a rich and powerful web browser, pioneering what is possible for applications on the web.
Shortcut For Chrome Developer Tools Upgrade To 5However, we are sure that even if you are an experienced web developer, you will pick up a tip or two.If your instance of Developer Tools does not quite match the screenshots found in this article, we recommend you upgrade to 5 so you may follow along and gain access to all of the features described here.Overall, there are eight main groups of tools available view Developer Tools, and the capabilities are being extended with every release. Our target audience are web developers who did not know of, or have not yet investigated, the Developer Tools. However, the screenshots were taken using Google Chrome 6, so there may be slight differences in your browser.In this article, we will take an overview tour of Developer Tools and point out its most popular, and useful, features. Most of the discussion in this article applies to both Google ChromeAnd Safari.![]() Here you can find a list of scripts required by the page plus a full featured script debugger. Scripts Scripts tabTo peer inside the JavaScript for a page, you will use the Scripts tool. The Resources tool is perfect for helping you speed up page load times. You can also view the HTTP request and response headers for each of your resources. Resources Resources tabUse the Resources tool to learn what components your web page or application is requesting from web servers, how long these requests take, and how much bandwidth is required. That is, using the Elements tool, you can see the raw HTML, raw CSS styles, the Document Object Model, and manipulate either in real time. Read more in Part Two, coming soon. For example, you can learn which functions take the most time to execute and zero in on exactly where to optimize. Profiles Performance tabThe Profiles tool helps you capture and analyze the performance of JavaScript scripts. Read more in Part Two, coming soon. You can learn how long the browser takes to handle DOM events, rendering page layouts, and paint the window. Timeline Timeline tabFor advanced timing and speed analysis, the Timeline tool offers in-depth visibility into the various Chrome behind-the-scenes activities. Audit Audit tabThe Audit tool is like having your own web optimization consultant sitting next to you. Read more in Part Two, coming soon. This tool can display and query data stored in local databases, local storage, session storage, and cookies. Starting UpIt's easy to start the Developer Tools while inside Chrome.For any operating system, you can simply right-click on any element in the page and select the "Inspect Element" option from the context menu. Read more in Part Two, coming soon. From the Console, you can enter arbitrary JavaScript and programmatically interact with your page. Console Console tabLast but definitely not least, the Developer Tools offers a full featured Console. Read more in Part Two, coming soon. On Windows and Linux, select the Control-Shift-J keys. Depending on your operating system, try the following: This is very useful when you are curious which HTML generated a particular page element.You may also open the Developer Tools with a simple keyboard shortcut. Right click on the Google logo, and you will see the following options:Selecting "Inspect Element" will bring up the Developer Tools, which should look like the following:Notice how the Developer Tools opened inside of the Elements tab and automatically drilled down to, and highlighted, the tag for the Google logo. Too often, pages you visit will have minified or simply ugly HTML which makes it hard to see how the page is structured. Inside the Elements tab, the page's DOM will be nicely formatted, easily showing you HTML elements, their ancestry and their descendants. For example, you may be curious if an image has an HTML id attribute, and what that attribute's value is.The Elements tab is sometimes a better way to "view source" for a page. This is your window into the structure of the web page, presented as your browser sees it.You will often visit the Elements tabs when you need to identify the HTML snippet for some aspect of the page. For example, the padding comes directly from the element's style attribute. Knowing whichStyling rule the browser is applying to the element helps you debug such an issue.Clicking on any element in the Elements tab will display all the styles attached to that element.You'll see in the screenshot above, that we're able to tell all the style attributes that are being applied. Sometimes, styles collapse onto themselves and unintended visuals appear. The format is good for clients and servers but difficult for developers!Instead, when you want to read the source of a page, use the Elements Tab to view a pretty-printed, syntax highlighted element hierarchy.The Elements inspector pretty printers HTMLThe Elements tab also allows you to browse, interact, and sometimes even change the Styles, Metrics, Properties, and Event Listeners for any element on the page.The cascading nature of CSS makes the Styles browser in the Elements tab very useful. Singer 301 serial numbersEvent ListenersAnd finally, you can even see the event listeners attached to, or that bubble through, the element via the Event Listeners menu:Viewing DOM Element event listeners. Element PropertiesYou can see all of the properties of the element, as JavaScript and the DOM would see it, by selecting the Properties menu:Viewing DOM Element properties. We'll cover the following in more detail in future articles.You can see the box model as it is applied to the selected element by selecting the Metrics menu:Viewing an element's box model. You can see the final product by selecting the Computed Style menu, as shown in the screenshot below.Browser computed styles are also displayed.Next, we'll take a brief look at the other features provided by the Elements Tab. Interestingly, you can tell there are styles also inherited from the >centerbody< tag, and others.While it's great to see the individual styles and where they come from, it's also very useful to see the final set of styles after it is computed and applied to the element. Your users will thank you for the fast page loads, you'll save money on bandwidth and server resources, and you'll also score better in Google's search result ranks (which now take into account site speed).The Resources Tab in Developer Tools is your window into the communication between web server and client browser. You should aim to make the transfer of your application, from server to client, as fast and as efficient as possible. The Resources Tab, described next, shows you how the client browser and web server communicate to send over those resources.Once your application is functioning, your next step should be to optimize the network and bandwidth performance. Common problems such as "how is this style computed?" or "what HTML tags generated this component?" are quickly and easily answered via the Elements Tab.Think of the Elements Tab like an uber-"view source", and gain very sharp visibility into your page.After you've investigated the page, you might be wondering how HTML, CSS, and images got there in the first place.
0 Comments
Leave a Reply. |
AuthorAndrea ArchivesCategories |