Skip Navigation Links



Paul Irish chats up with the Bangalore JS community

Author : Anil      Blog :Tech Tips, Tricks & Trivia      Date: 9/6/2012 5:18:00 PM



Chrome Dev Relations guy & Web Standards champion, Paul Irish chatted up with the Bangalore JS community on Twitter a few days ago. He shared tips & revealed interesting facts about Chrome Dev Tools. Excerpts (paraphrased at some places to provide context):

  • My favorite hidden feature in Chrome Dev Tools is shift-esc which reveals the console in slow-mo.
  • You can now emulate User Agents, and screen size of a lot of devices...& emulate touch events. Soon geolocation spoofing.
  • ..a more recent addition is "Force Element State" where you can force an elem into :hover mode. 
  • new: in the console $_ now refers to the most recent returned value in the console.
  • $0 refers to the element inspected. so, click on a tag in the elements panel, and $0 in the console refers to it.
  • ..if anyone has any feature requests or trouble areas the DevTools could help with, Holler at me. I'm your man.
  • the other complement to $0 is inspect(elem) inside console will switch over to Elements panel to inspect that one
  • Offline (mobile apps) is still a tough nut to crack. http://www.html5rocks.com/en/tutorials/#technology:offline is a great guide to what you can do....some apps like gmail and google docs have gone offline beautifully...Workflowy's offline mode is strong too and a feature called prefer-online was added to appcache in the HTML spec  http://html5.org/tools/web-apps-tracker?from=7135&to=7136 which may help some but there is still work to be done. 
  • you can explore new upcoming devtools stuff: go to about:flags, flip the devtools one, then see Experiments in settings
  • beautify JS: in Sources panel hit the {} icon at the bottom. Boom. beautified. We're looking at making it happen for CSS
  • Q: Which is the most useful feature of chrome-dev-tools, that supposedly most people don't know? A: Definitely best feature: "Disable Cache" that's in Settings. And that you need devtools to be visible for it to work. :)
  • Q: ..seems Console api which comes with chrome/firefox aren't standardized? any efforts happening to standardize? A: the console API is standardized unofficially, never in the W3C, but all tool vendors agree.. in fact! now $ will be a shortcut to document.querySelector, which is more of what people expect, thanks to jQuery.
  • Q: is id based selector better than class based? (when there are many of them)  A: webkit doesnt actually have a fastpath for #id selectors, unlike jQuery.. class selectors are more maintainable IMHO
  • Q:  Can we get chrome dev tools to inspect my web app and tell me all the memory leaks places including line number and file name? A: the Heap Profiler in devtools helps a lot. There is a 3 snapshot technique Gmail pioneered that we'll share soon that helps...you won't get as accurate as "HERE ARE YOUR LEAKS" but the usability of the heap tool is getting stronger all the time
Read complete conversation

Related:

Bloggers

active bloggers in the last 24 hrs. Number shown in the bracket represents number of posts published in past 24 hrs,


other authors(57)

AMJAD KHAN(7)

Firoze Shakir Photographerno1(5)

sumana Mukhopadhyay(4)

RWABhagidari.blogspot.com(3)

BUTTERFLIES OF TIME(2)

hAnGp(2)

Nish(2)

Sameena Prathap(2)

SEO(2)

Vikram Karve(2)

Abrachan Pudussery(1)

Adriana(1)

Aliena Varghese(1)

Amarendra(1)

Ambica Srimal(1)

Anisha Aditya(1)

anisnest(1)

anouradha bakshi(1)

Anu Lal(1)

Anukampa(1)

Aruna Manikandan(1)

Ashwini Kumar(1)

Beyond(1)

Bharathi(1)

churumuri(1)

churumuri(1)

Cynical(1)

Cynthia Z(1)

Deeps(1)

Devi(1)

Dew(1)

Disha(1)

DivSu(1)

Eon Heath(1)

Geek Girl(1)

Hari Chandana P(1)

Harnoor(1)

Himangshu(1)

Indrani(1)

Indrani(1)

IS(1)

Itchingtowrite(1)

jaideep khanduja(1)

Ka Jo(1)

Kalyani(1)

Kavi(1)

Lord Ickenham(1)

Madhaw Tiwari(1)

-Manoj(1)

Meena(1)

Megha(1)

mervin anto(1)

Miss Frangipani(1)

Mohammad Khalid Siddiqui(1)

monikamanchanda(1)

Neha(1)

nik hill(1)

nikschumi(1)

Nisa Homey(1)

Nithya(1)

Nivedita Thadani(1)

P.(1)

palsworld(1)

pixie(1)

Piyush Kaushal(1)

Pooja(1)

Pooja Sharma Rao(1)

Prasanta Bora(1)

Priya Srinivasan(1)

rads(1)

Ragesh Chakkadath(1)

Ram Bansal(1)

Ram Bansal(1)

Ramanujam Sridhar(1)

Rams(1)

Richa Singh(1)

RNA Corp(1)

Robinsh Kumar(1)

Rohit Rajpal(1)

Sachita(1)

saffronstreaks(1)

Saibal Barman(1)

Sameena Prathap(1)

Sands(1)

sangeeta(1)

Sangeetha M(1)

Sangitha(1)

Sankara Subramanian(1)

sareez(1)

Sharjeel(1)

Shobha(1)

Shweta Ganesh Kumar(1)

Simran(1)

Sneo(1)

Sophie(1)

Sree(1)

Srikanth(1)

Srinivasan Sampathkumar(1)

Sriram Khé(1)

Suchismita(1)

Surya.(1)

tikulicious(1)

UmmON(1)

Vashi Chandiramani(1)

Vasudha Rao(1)

Vishesh Shrivastava(1)

vskesavarao(1)

wildflower(1)

Zardy(1)

ജിവിന്‍ ജോണ്‍(1)


garland of Languages of India
an amalgamation of the diversified traditions
gracefully presented with novelty
http://www.haaram.com