Hey, guys… First timer here. I apologize ahead of time if the following topic is lame, but I’m stuck and could really use some guidance.
I’ve been playing with Sage and Bedrock for a few days now trying to wrap my head around how it all works. I’m really loving it for the most part, and I think the only reasons I’m not loving it are solely because I don’t fully understand everything yet.
My topic has to do with a site I’m building with Sage for the very first time. I’ve got my styles and most of my templates working wonderfully and really digging the structure. I’m also being forced to learn SASS as I’ve historically been a LESS user. All good stuff nonetheless.
I’m using Typekit to pull in custom fonts, but I’m unsure where to add my Typekit embed script. My instinct was to put it in the main.js ‘common’ area, but that doesn’t seem to be working. Where do I put my code? Any additional insights or instruction would be greatly appreciated.
My second issue is with getting Masonry to fire. I’ve only incorporated it on the homepage in this design, so again my instinct was to put it in main.js ‘home’ area, again to no avail. I’m also getting an error as follows: TypeError: undefined is not an object (evaluating ‘t.Outlayer.Item’). I’ve read through some other topics and set my bower.json overrides to masonry.pkgd.js and still getting the error. So, where do I put my code and how do I address the error?
The third issue is that I’ve included a sort of preloader overlay that I’d like to fadeOut on window.load. Same question as above, really. Where do I put this code?
I’m essentially a beginner when it comes to javascript and jQuery and only know enough to get myself in trouble, so I apologize if this topic is too simple for the community. Just know it’s of great interest and value to me and I appreciate any and all help provided.
Cordially,
– Patrick