Title: afterLoad API Method?
Last modified: March 8, 2017

---

# afterLoad API Method?

 *  Resolved [7Jayme](https://wordpress.org/support/users/7jayme/)
 * (@7jayme)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/afterload-api-method/)
 * Hi, I am trying recalculate height of each item/photo for fit them to 100% window
   height frame.
 * But it seems that my JS is loaded before full load of feed so it rewrites back
   my changes.
 * Is there any method/event which triggers my code after load? Or any setting of
   photo height in admin?
 * Thanks for advice!
    -  This topic was modified 9 years, 3 months ago by [7Jayme](https://wordpress.org/support/users/7jayme/).
    -  This topic was modified 9 years, 3 months ago by [7Jayme](https://wordpress.org/support/users/7jayme/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/afterload-api-method/#post-8892057)
 * Hey 7Jayme.
 * We have an area for just this kind of thing on the “Customize” tab “Custom Javascript”
   area. Code placed here will fire after the feed is done loading and after new
   posts are done loading after clicking “Load More”.
 *  Thread Starter [7Jayme](https://wordpress.org/support/users/7jayme/)
 * (@7jayme)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/afterload-api-method/#post-8892484)
 * Thanks for reply, Craig!
 * I’ve tried this, but it seems not working properly too. How should I use jQuery
   there? jQuery() or $() ?
 *  Plugin Contributor [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/afterload-api-method/#post-8895671)
 * Hey again,
 * Either one should work fine. I was able to get this snippet to change the height
   of each image saved in that area:
 * jQuery(‘#sb_instagram .sbi_photo’).each(function() {
    jQuery(this).css(‘height’,’
   222px’); });
 * Can you share the code you’re using? Also if you can share the page and tell 
   me a bit more about what you’re trying to do, I can take a quick crack at it!
 *  Thread Starter [7Jayme](https://wordpress.org/support/users/7jayme/)
 * (@7jayme)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/afterload-api-method/#post-8896401)
 * I should not work in half-sleep mood :/ There has been some mistypes in code.
   Custom JS field work properly!
 * SOLVED!
 * Thanks again for advices and your time 🙂
 *  Plugin Contributor [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/afterload-api-method/#post-8896941)
 * Awesome! No problem. Let me know if you ever need anything else.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘afterLoad API Method?’ is closed to new replies.

 * ![](https://ps.w.org/instagram-feed/assets/icon-256x256.png?rev=2700807)
 * [Smash Balloon Social Photo Feed – Easy Social Feeds Plugin](https://wordpress.org/plugins/instagram-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-feed/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/afterload-api-method/#post-8896941)
 * Status: resolved