Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CDN link #371

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@ If you're unfamiliar with the concepts surrounding Responsive Web Design, you ca
Usage Instructions
======

1. Craft your CSS with min/max-width media queries to adapt your layout from mobile (first) all the way up to desktop
1. Include this in your html:
```html
<script src="https://cdn.jsdelivr.net/npm/respond.js@1/dest/respond.min.js"></script>
```

2. Craft your CSS with min/max-width media queries to adapt your layout from mobile (first) all the way up to desktop
```css
@media screen and (min-width: 480px){
/** ...styles for 480px and up go here **/
}
```

2. Reference the respond.min.js script (1kb min/gzipped) after all of your CSS (the earlier it runs, the greater chance IE users will not see a flash of un-media'd content)
3. Reference the respond.min.js script (1kb min/gzipped) after all of your CSS (the earlier it runs, the greater chance IE users will not see a flash of un-media'd content)

3. Crack open Internet Explorer and pump fists in delight
4. Crack open Internet Explorer and pump fists in delight


CDN/X-Domain Setup
Expand Down