# Block certain html/js from loading on a webpage

**URL:** <https://forum.kirupa.com/t/block-certain-html-js-from-loading-on-a-webpage/266761>\
**Category:** web dev\
**Created:** [July 24, 2008, 4:28am UTC](https://forum.kirupa.com/t/block-certain-html-js-from-loading-on-a-webpage/266761 "2008-07-24T04:28:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thejoeknows\_com](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@thejoeknows\_com](https://forum.kirupa.com/u/thejoeknows_com)\
**Post date:** [July 24, 2008, 4:28am UTC](https://forum.kirupa.com/t/block-certain-html-js-from-loading-on-a-webpage/266761/1 "2008-07-24T04:28:03Z")

</div>

I am making a firefox extension, which are written in js/xul

and i was wondering if its possible for the javascript part of the code to tell Firefox to NOT load a certain part of the code, for example, a fuction, or full string of code.

thank you for any help,  
joey
