Commit graph

5 commits

Author SHA1 Message Date
Kevin Ansfield 978ffe0eb6
Concatenated all JS into a single file (#624)
no issue

- moved large inline JS from templates into separate JS files
  - floating header
  - gallery card support
- use `gulp-concat` to concatenate all JS files into a single `built/casper.js` file
- reduces external JS file requests from 3 (jquery, infinite-scroll.js, jquery.fitvids.js) down to 2 (jquery, casper.js) and reduces page size by removing repeated inline code
2019-10-20 15:55:06 +02:00
John O'Nolan f08f07fd7e Fixed Firefox responsive video bug
Closes https://github.com/TryGhost/Casper/issues/330

As usual Firefox is the bane of fucking everything and despite IE7 calling multiple times wanting its rendering back, here we are. Responsive video embeds insider a flexbox element do not work in Firefox and require an additional (very specific) wrapping div. I've adjusted the Fitvids.js script here to include that div in its injection along with the requisite styles. It's a horrible hack. Spent 2 hours trying to find another way but I cant.
2017-07-31 19:38:16 +04:00
John O'Nolan bc9e5a0b2e Second pass 2.0 2017-05-31 19:09:50 +01:00
Fabian Becker 53b33f2d4a Update jquery.fitvids.js to 1.1
fixes #80
2014-03-01 03:51:08 +01:00
John O'Nolan 4616c5bd1d Responsive videos by default u guyz 2013-10-31 18:35:57 +01:00