All posts tagged ‘firefox’

File Under: Browsers

Firefox’s New ‘IonMonkey’ Speeds Up JavaScript

Photo: Jim Merithew/Wired

Firefox will soon be getting another JavaScript speed boost thanks to a project Mozilla calls “IonMonkey.” The project is a new just-in-time (JIT) compiler for Firefox’s SpiderMonkey JavaScript engine and will significantly speed up JavaScript-intensive websites like Gmail or Facebook.

IonMonkey is available today as part of the Firefox nightly channel and is slated to arrive in final form with Firefox 18 in early 2013.

Mozilla’s David Anderson writes about what makes IonMonkey faster on the Mozilla JavaScript blog:

SpiderMonkey has a storied history of just-in-time compilers. Throughout all of them, however, we’ve been missing a key component you’d find in typical production compilers, like for Java or C++. The old TraceMonkey, and newer JägerMonkey, both had a fairly direct translation from JavaScript to machine code. There was no middle step. There was no way for the compilers to take a step back, look at the translation results, and optimize them further.

IonMonkey takes that step back, introducing an intermediate step where JavaScript is optimized before it gets converted to machine code. The result is a pretty significant speed boost — Firefox 18 with IonMonkey is 20 percent faster on Google’s V8 benchmark tests than the current stable release, Firefox 15. For more details on how IonMonkey works and some additional performance stats, head over to Anderson’s post on the Mozilla JavaScript blog.

If the nightly builds are a bit too bleeding-edge for you, Firefox 18 and IonMonkey will hit the Aurora channel Oct. 8 and then Beta Nov. 20 before the final release in 2013.

File Under: Browsers

Latest ‘Aurora’ Release Tricks Out Firefox Developer Tools

Live HTML editing in Firefox 17. Image: Screenshot/Webmonkey.

Firefox 17 recently graduated into Mozilla’s Aurora development channel, which offers a chance to preview new Firefox features before they’re ready for prime time. The latest Aurora release brings with it more improvements to the built-in web developer tools.

If you’d like to experiment with the new developer tools in the Aurora channel, grab a copy from Mozilla.

Mozilla has been working hard on Firefox’s developer tools over the last several Firefox releases. There are some promising new features in the current Firefox beta and Firefox 17 will add several more, including live HTML editing.

Just as the Style panel of the Page Inspector in current releases allows you to manipulate the styles on the page, the coming Markup panel will let you tweak the DOM in real time. The client wants to re-write the homepage copy? No problem, just start typing. Live previews mean you can quickly prototype ideas without diving into your actual HTML templates or even opening a text editor and starting the save-and-refresh dance.

The Page Inspector has also been updated in this release so that visually selecting items on the page no longer draws a dark “veil” over everything else. The dark background was an unusual design choice back when the developer tools first launched, which, as we noted, is roughly the visual opposite of every other browser’s developer tools.

There’s been an option to turn off that dimming for some time, but when Aurora hits the final release stage in a couple of months the dimming will be gone for good. Instead highlighted elements will be outlined with a dashed line and the “node toolbar”.

Mozilla’s Kevin Dangoor explains the change:

We found that the appearance of the dark “veil” over everything but the selected element was striking, but also making it harder for designers to see styling changes they made in the context of their overall design.

Instead of darkening the whole page, we highlight the selected element using a subtle dashed line and the useful node toolbar. Even better, when you move your cursor to the Style panel to try out style changes, the highlighting fades away entirely so that you can focus entirely on the styling.

For more details on other changes for developers, including the revamped Web Console and the smarter debugger coming in Firefox 17, check out Dangoor’s full post over on the Mozilla hacks blog.

File Under: Browsers, JavaScript

Better JavaScript Development With ‘JSTerm’ for Firefox

JSTerm, an experimental Firefox add-on for JavaScript developers, has hit version 2.0.

The JSTerm Firefox add-on — not to be confused with the HTML5 Telnet Emulator by the same name — adds a “jsterm” button to Firefox’s Developer Toolbar. Click the button and you’ll get a JavaScript terminal for live coding, prototyping and quick JavaScript experiments. JSTerm behaves like a typical shell terminal with history, tab completion and plenty of key bindings.

Version 2.0 offers performance improvements, a new option to undock the terminal into its own window, global history shared across sessions and support for OS X’s fullscreen mode.

To try out JSTerm you’ll need Firefox 16 (currently in the Beta channel) since JSTerm uses the new Graphical Command Line Interface we covered in our Firefox 16 beta review. JSTerm also takes advantage of the built-in Firefox Source Editor to highlight JavaScript and a sandbox to eval JavaScript.

If you’re thinking there are already several tools for Firefox that cover this ground, well, you’re right. The built-in Scratchpad and WebConsole both offer similar tools, though neither is quite as nice for quick prototyping and experimenting. Developer favorite Firebug also has a Console for JavaScript developers, but it lacks the nice syntax highlighting you’ll find in JSTerm.

For more details on JSTerm and a changelog of everything that’s new in this release, check out Mozilla developer Paul Rouget’s blog. To have a look at the code behind JSTerm, head to GitHub.

File Under: Browsers

Latest Firefox Beta Offers Powerful New Tools for Web Developers

Hot on the heels of the latest stable release, Firefox 16 has entered the beta channel, bringing with it some cool new tools for web developers.

If you’d like to give them a try, download the latest Firefox beta from Mozilla.

The latest addition to Firefox’s ever-expanding set of built-in tools for web developers is the new Developer Toolbar and its “command line” tool.

The Developer Toolbar itself is really just a faster, easier way to get to the common web developer tools. To use it just hit the keyboard shortcut Shift-F2 and the Developer Toolbar will appear as a thin, dark gray strip along the bottom of the page.

To the right of the toolbar you’ll find buttons for the Inspector, Console and Debugger panels, but the real star of the Developer Toolbar is the new command line tool, which sits on the left side with a shell-style prompt. Mozilla refers to this as a “Graphical Command Line Interface,” an oxymoron that actually makes sense when you see it in action.

Here’s how it works: Hit the keyboard shortcut to activate it (Shift-F2) and then type your commands. For example, you can inspect an element on the page by typing Shift-F2 and then “inspect H1″. Hit return and Firefox will open the Inspector Panel and highlight the <h1> for you. You can do something similar to search your markup by id, just type “inspect #name” and hit return.

Once you get the muscle memory down it makes for an incredibly fast way to navigate through your source code without ever taking your fingers off the keyboard. It’s not Pentadactyl or Vimperator-level keyboard commands by any means, but it can definitely be a huge productivity booster for keyboard junkies. My only quibble is that Shift-F2 doesn’t toggle the Toolbar, it just opens it. And ironically there doesn’t seem to be a command line command to close it.

Among the useful tools the command line puts at your fingertips are “resize,” which lets you access the responsive design tools, “pagemod” for live editing, “cookie” for inspecting and creating cookies and “screenshot” for grabbing images of the page. There are 16 commands in all; be sure to read through the Mozilla Hacks blog post for more details and examples. And be sure to type “help” to get more details on what you can do with each command.

One of the best features of the new command line is that anyone can create their own commands, which means at some point Firebug might be able to add its tools to the list of commands. The Mozilla Hacks blog has promised a follow up post on how to create your own commands; we’ll be sure to let you know when it’s available.

File Under: Browsers, Mobile

Firefox for Android Goes Tablet-Native

Firefox for Android. Image: Scott Gilbertson/Webmonkey

The latest version of Mozilla’s Firefox browser for Android devices is now available in the Google Play Store.

This release continues Mozilla’s move away from the unified Firefox look to one that uses native Android interface elements.

The new native interface for Android tablets means faster start-up times and a much speedier Awesome Bar for searching, but it also means the browser is a bit more Android-y and a bit less Firefox-y. For most Firefox fans that’s probably just fine; the significant speed boost more than makes up for the fact that the mobile version looks a bit different than desktop Firefox.

The latest Firefox for Android packs in some other welcome new features as well, including the ability to import bookmarks and browsing history from Android’s stock web browser, a new setting to clear specific types of private data and a much-needed new “find in page” search tool.

This release also includes much of the new web standards support found in Firefox for Android’s desktop cousin, also released today, which means that CSS word-break and other new features will work on mobile devices as well.

For a complete list of new features in Firefox for Android, be sure to check out the full release notes. And while Firefox for Android has been pretty stable in my testing, there are still some known issues, including one bug that occasionally causes the screen to go wonky (“yield unexpected behavior,” in Mozilla’s words) when changing from portrait to landscape and vice versa.