# Handling browser resize event when resize ends

**URL:** https://community.haxe.org/t/handling-browser-resize-event-when-resize-ends/4254
**Category:** Haxe
**Created:** [June 11, 2024, 11:17am UTC](https://community.haxe.org/t/handling-browser-resize-event-when-resize-ends/4254 "2024-06-11T11:17:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rat-moonshine](https://community.haxe.org/user_avatar/community.haxe.org/rat-moonshine/32/2086_2.png) [@rat-moonshine](https://community.haxe.org/u/rat-moonshine)
#### Post date: [June 11, 2024, 11:17am UTC](https://community.haxe.org/t/handling-browser-resize-event-when-resize-ends/4254/1 "2024-06-11T11:17:23Z")

</div>

My application is based on `FeathersUI.Applications` and target for HTML5.

I was trying to catch browser resize event with `Event.RESIZE` - that does triggers when browser window resizes, but it fires continuously until the resize completes.

What option do I have to catch event when resizing completes?  
Please, suggest.

---

<div class="post-metadata">

### Author: ![ablum](https://community.haxe.org/user_avatar/community.haxe.org/ablum/32/415_2.png) [@ablum](https://community.haxe.org/u/ablum)
#### Post date: [June 11, 2024, 2:35pm UTC](https://community.haxe.org/t/handling-browser-resize-event-when-resize-ends/4254/2 "2024-06-11T14:35:13Z")

</div>

I’m not sure there are enough people in here to help you with your FeathersUI problem(s). my suggestion would be to go to [https://feathersui.com/community](https://feathersui.com/community) and pick a place more frequented by fellow FeathersUI developers.

---

<div class="post-metadata">

### Author: ![joshtynjala](https://community.haxe.org/user_avatar/community.haxe.org/joshtynjala/32/792_2.png) [@joshtynjala](https://community.haxe.org/u/joshtynjala)
#### Post date: [June 11, 2024, 8:02pm UTC](https://community.haxe.org/t/handling-browser-resize-event-when-resize-ends/4254/3 "2024-06-11T20:02:44Z")

</div>

By default, a Feathers UI `Application` resizes based on the OpenFL stage’s `Event.RESIZE`. For the html5 target, that’s ultimately based on the “resize” event dispatched by the browser in JavaScript. There doesn’t appear to be a separate event to detect in JS when a browser window has completed resizing. The advice I saw with a quick Google search was to use a timer or something to wait bit after each “resize” event. If there isn’t another “resize” event dispatched within a certain amount of time, consider the resizing to be complete.
