Title: Javascript API external use
Last modified: May 26, 2020

---

# Javascript API external use

 *  [lvfxbr](https://wordpress.org/support/users/lvfxbr/)
 * (@lvfxbr)
 * [6 years ago](https://wordpress.org/support/topic/javascript-api-external-use/)
 * Hi there!
 * I have a lazy load feature to load the sections in the front page of my theme.
   The section that I have a contact form from contact form 7 is the latest before
   the footer.
 * The problem is when the section loads via ajax one by one in page scroll, the
   script of contact form 7 inits the form before the html element loads.
 * There is a way to allow me to access the wpcf7 API and call init after the section
   of my form loads? The API of CF7 is great but I can’t access it externally using
   a script of my theme.
 * Thank you for CF7!

The topic ‘Javascript API external use’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [api](https://wordpress.org/support/topic-tag/api/)
 * [events](https://wordpress.org/support/topic-tag/events/)
 * [external](https://wordpress.org/support/topic-tag/external/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 0 replies
 * 1 participant
 * Last reply from: [lvfxbr](https://wordpress.org/support/users/lvfxbr/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/javascript-api-external-use/)
 * Status: not resolved