What do the “Not optimized” warnings in the Chrome Profiler mean?

I believe that “Not optimized: optimized too many times” refers to when the chrome optimizer keeps reoptimizing a function. https://groups.google.com/forum/#!topic/v8-users/_oZ4fUSitRY If I recall correctly, there are several things that can cause this including parameters that change type, I’ll try to dig up the link. This one is somewhat cryptic and fixes will depend on your … Read more

Is it possible to emulate orientation in a browser?

In Chrome Dev Tools: If you go to Settings>Overrides>Device metrics If you swap the dimensions for the screen resolution the orientation will change and the orientationchange-event will be triggered. The orientation is depending on the relationship between ‘width’ and ‘height’. If ‘height’ has a higher value than ‘width’, the browser will be in orientation: ‘portrait’ … Read more

Safari Developer Tools: How to Preserve Console Log Upon Navigation?

I don’t know when this was added, but it is present in Safari on El Capitan (Safari 9.0). It works the same as in Chrome (right click in the console window and select “Keep Log on Navigation”). Update: As per Daniel Compton’s answer, in Safari 11+ this is now under the settings icon as ‘Console: … Read more

How do you check cookies using Chrome?

To check the current page’s cookies using Chrome: Option 1 Open Developer Tools (usually F12) Click the “Application” tab (used to be “Resources”) Expand the “Cookies” list item Click any list item. You can view cookies in detail here, and clear them out (click any list item under cookies then click the cancel icon on … Read more

How can I log an HTML element as a JavaScript object?

Use console.dir: var element = document.documentElement; // or any other element console.log(element); // logs the expandable <html>…</html> console.dir(element); // logs the element’s properties and values If you’re inside the console already, you could simply type dir instead of console.dir: dir(element); // logs the element’s properties and values To simply list the different property names (without … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)