Title: .trigger(&quot;resize&quot;) in plugin&#039;s main JS file
Last modified: August 30, 2016

---

# .trigger("resize") in plugin's main JS file

 *  [Marventus](https://wordpress.org/support/users/marventus/)
 * (@marventus)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/triggerresize-in-plugins-main-js-file/)
 * Hello, there! I hope you are doing well.
 * I am a web dev, and I have recently discovered that the window resize event was
   being triggered way too many times on one of my sites, which was preventing me
   to bind a particular method to that event.
 * After looking into this a bit, I realized that the triggering was coming from
   the Q2W3 Fixed Widget plugin, line 126 of `q2w3-fixed-widget.js`.
 * I was wondering if there was a particular reason for doing it that way, since
   after removing that `.trigger("resize")` call and calling the right JS file from
   the main PHP file, the plugin seems to work normally.
 * It would really help if you could provide me with some insights regarding this
   matter. Thanks in advanced!
 * [https://wordpress.org/plugins/q2w3-fixed-widget/](https://wordpress.org/plugins/q2w3-fixed-widget/)

The topic ‘.trigger("resize") in plugin's main JS file’ is closed to new replies.

 * ![](https://ps.w.org/q2w3-fixed-widget/assets/icon-256x256.png?rev=2384479)
 * [Fixed Widget and Sticky Elements for WordPress](https://wordpress.org/plugins/q2w3-fixed-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/q2w3-fixed-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/q2w3-fixed-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/q2w3-fixed-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/q2w3-fixed-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/q2w3-fixed-widget/reviews/)

## Tags

 * [event](https://wordpress.org/support/topic-tag/event/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [resize](https://wordpress.org/support/topic-tag/resize/)
 * [trigger](https://wordpress.org/support/topic-tag/trigger/)
 * [window](https://wordpress.org/support/topic-tag/window/)

 * 0 replies
 * 1 participant
 * Last reply from: [Marventus](https://wordpress.org/support/users/marventus/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/triggerresize-in-plugins-main-js-file/)
 * Status: not resolved