# Adding the window resize code in the example code?

**URL:** <https://discourse.threejs.org/t/adding-the-window-resize-code-in-the-example-code/30453>\
**Category:** Questions\
**Tags:** resizing\
**Created:** [October 1, 2021, 7:54pm UTC](https://discourse.threejs.org/t/adding-the-window-resize-code-in-the-example-code/30453 "2021-10-01T19:54:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nishu-murmu](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/nishu-murmu/32/21329_2.png) [@nishu-murmu](https://discourse.threejs.org/u/nishu-murmu)\
**Post date:** [October 1, 2021, 7:54pm UTC](https://discourse.threejs.org/t/adding-the-window-resize-code-in-the-example-code/30453/1 "2021-10-01T19:54:58Z")

</div>

How about adding the resizing feature in the main example so that it could be more beginner friendly?  
It’s just few lines of code.
