Created
December 13, 2018 20:07
-
-
Save interactiveRob/d88ecf10bcd326d9772451de2d8c1016 to your computer and use it in GitHub Desktop.
No FOUC ES6 Class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default class NoFouc { | |
| constructor() { | |
| this.$elements = $('.no-fouc'); | |
| } | |
| removeFoucBlocker(){ | |
| this.$elements.removeClass('.no-fouc'); | |
| } | |
| init() { | |
| this.removeFoucBlocker(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment