Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.1 KB

README.md

File metadata and controls

27 lines (14 loc) · 1.1 KB

Responsive refresh userscript

A userscript to assist you in your responsive devs

Why

Our latest responsive site is partially responsive from the server side rendering.

This script automatically refresh the page with the proper device format, as you resize the page.

Install

As chrome is slightly painful (they probably got good concerns), you can't install a userscript directly... see http://userscripts.org/about/installing

The trick is too install the Tampermonkey extension, and then load the script: https://github.com/jobwat/responsive-refresh-userscript/raw/master/responsive-refresh.user.js

TODO

Innovate in a dynamic triggering mechanism to enable this userscript on some conditions only (url is not enough in dev mode..)

Note

I've started the same project as a Chrome Extension first but couldn't get the viewport dimensions, only the window ones.

Licence

MIT