Atlassian Skate js magic option

Atlassian JIRA 7 has a new dependency – Skatejs. This post is not about advantages of the library but side-effect of the last one.


So, this library can be a reason of slow UI rendering, e.g. in JIRA custom fields or any kind of long HTML markup, because Skate listens by default to any DOM node manipulations (creation, deletion).


To avoid slow rendering of long content, it is sufficient to add only “data-skate-ignore” attribute to root element of long HTML content:

<div data-skate-ignore>
<!-- long content -->

This attribute prevents content from Skate handling therefore performance of rendering will be increased.

Getting Android battery and charging information

To receive information about battery on Android device, developer must to register an empty BroadcastReceiver with Intent.ACTION_BATTERY_CHANGED action of IntentFilter:

Intent batteryIntent = context.registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));

Continue reading Getting Android battery and charging information