Showing posts with label optimization. Show all posts
Showing posts with label optimization. Show all posts

Thursday, March 13, 2014

Designing content for mobile phones

This one is a short one.

Now, every once in a while a developer has to test their content with a device that is not very widespread, but which form factor is. These are typically mobile phones that are older or just basic. No, not everyone has a smartphone; This may be because of circumstance, or necessity, or for just being a holdover who wants to avoid planned obsolescence on their device. There are millions of these devices in use and there's always a chance someone uses them.

Content in this case is not just a web page or a wap page, but also a background image, which has to fit the screen; or an image in a mobile web page which shouldn't be too large for a screen. So, a background image, which I'd want to fit right across the screen of a phone.

Yes, there are many web pages listing resolutions for numerous device models, and I've even seen several sites that attempt real-life representations of how a mobile phone would appear and look like without necessarily having to buy it, but that's not quite it, because the data is represented in the most convoluted manner, no matter how basic or fancy.

So the solution is this very nice collection of screen resolutions at
http://lab.artlung.com/screen-resolutions
— with corresponding phone models writ inside. These start progressively from the smallest ones at the top to the biggest near the bottom. Each screen resolution is formatted in its own block to the pixel size of what a corresponding device would have, and colour coded progressively from gray to red to indicate how many models each resolution is represented by. Most of all, its very, very simple and intuitive.

This is what I or a developer/content creator really would like to know, because this helps to determine either exact or, as required, the most approximate size of generated content. Often-times browser/user agent statistics don't always reflect the size of a customer's screen, so it's important to know what they are using and how they are seeing the resource that the customers are visiting.

Friday, September 12, 2008

Most important settings in optimizing Mozilla Firefox, K-Meleon and other Gecko-based browsers

Usually these two about:config instructions rarely appear together in any entry about optimizing a Gecko-enabled browser, such as Mozilla Firefox, K-Meleon, SeaMonkey and others.

    In about:config
  • network.prefetch-next — toggle to false (can be done with a doubleclick)
  • browser.sessionhistory.max_total_viewers — change to 0 on computers with low resources or 2 on friskier machines.
  • In very modern and very fast machines, the default settings can be kept intact.
Update: 28 Coolest Firefox about:config Tricks — Contains instructions both for Windows and Linux users and those who prefer some of the older Firefox UI features.

E., 18.07.2011. Update: Something I very recently found by chance in a version of Firefox on Knoppix 4.0.2, yet which may well exist in other systems and versions:

browser.related.enabled can be set to false, because the preference does very little specifically in anything that is not SeaMonkey (unless someone is using any What's Related-like extension that uses the preference).

Most of the preferences well apply to older versions of Gecko-based browsers, especially those that use Gecko 1.7, 1.8 and 1.8.1 (upwards to Firefox 2, SeaMonkey 1.1 and K-Meleon 1.5.4).

Firefox 4.0/5.0+ (where 5.0 is actually an incremental development because of rapid development practices now at mozilla.org) are less and less likely to require these modifications, because they're typically installed on modern and very modern computers.

L., 22.10.2011. Update:

browser.sessionstore.max_concurrent_tabs — Set to 0

If you're using multiple tabs, then upon session restore all the tabs are restored, but pages are loaded only on the tabs that you open. If you're using more than one window, the last tabs open before closing will still load.

Applies to Mozilla Firefox/Iceweasel/IceCat 4–8 only
08.01.2012. update: The feature was deprecated in version 9.0 of Firefox and corresponding forks. Users who still have version 8.0.1 at most and are happy with how it performs, should turn off the auto-update feature in Preferences.

Other options can be found from about:config entries at MozillaZine Knowledge Base Wiki.

P., 04.03.2012. Update:
This one should be useful for users of LiveCD-s:

plugins.hide_infobar_for_missing_plugin

This should work in Mozilla Firefox/Debian Iceweasel/GNU IceCat 3.0 and SeaMonkey 2.0 or newer (given that the function was first checked in on 02.10.2007).

P., 05.08.2012. Update: browser.sessionstore.interval — Set integer to more than 10000 (milliseconds; default value means 10 seconds) — I sometimes set it to 34000 or even 60000.

This can be useful if you don't want Firefox to interfere with plugin work. (I won't guarantee that it would work as expected, but in theory it sould improve performance. Apply if you think it may help.)