Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

OG: Data Best Practices / jQuery .load()

I've been working on getting the OG:Data for my website (https://theidiottourist.com/) to show correctly for the index page. I was previously using jQuery's .load() method to insert the meta tags onto the page from a separate file. This didn't seem to actually insert the data properly and I ended up having to directly link the meta tags onto the index page for the OG:Data to be recognized. I was wondering if anyone could provide me with the causation/best practices and what I should try instead of .load(). Thanks.