{"push_id":878297699,"size":1,"distinct_size":1,"ref":"refs/heads/no-rerender-selectors","head":"42c521e80348304737d6d7ba0e6ba7879f47a226","before":"e7ba44ac1b53857444a611e7099ccb935039ba10","commits":[{"sha":"42c521e80348304737d6d7ba0e6ba7879f47a226","author":{"email":"7cab19218129c8be3fddad3960a792e179e562d8@madhatted.com","name":"Matthew Beale"},"message":"Unify mobile state in JS, drop resize\n\nIn `gh-content-view-container` the visibility of another DOM node was\nbeing used to detect if a given view was mobile or not. This means the\nUI needed to have layout forced (and DOM rendered) before the content\nview container would render a second time. This is slow interaction with\nthe DOM (forcing layout) and slow for Ember's renderer (it needs to\nrender the container once with a default, then again when the value\nchanges).\n\nAdditionally there were two ways resize was being observed. The\n`Window.matchMedia` API was used for some styles and the `ember-resize`\naddon used to detect other changes. Here I've unified around just the\n`Window.matcheMedia` API but abstracted it behind a service.\n\nSizes are exposed as properties that can be bound to or used directly in\ntemplates.","distinct":true,"url":"https://api.github.com/repos/mixonic/Ghost/commits/42c521e80348304737d6d7ba0e6ba7879f47a226"}]}