Firefox扩展在页面加载之前正在运行 [英] Firefox extension is running before page is loaded

查看:129
本文介绍了Firefox扩展在页面加载之前正在运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经为Firefox创建了扩展程序,并且已经安装.问题在于扩展程序正在加载网页之前运行.我希望扩展在页面加载完成后运行.当前,它在Firefox加载期间和网页加载之前运行.有人可以指导我吗?

谢谢....

Hi all,

I have created an extension for Firefox and already installed. The problem is the extension is running before the web page is loaded. I want the extension to be run after the page load is completed. Currently it is running during the load of Firefox and before web page load. Can some one guide me on this?

Thanks....

推荐答案

您尝试过jquery吗?也许您可以使用document.ready()?我相信,如果这样做,则javascript(在DOM(页面)已加载)后执行.
示例:(假设您当然包括jQuery库.)

Have you tried jquery? Perhaps you could use the document.ready()? I believe if you do that, the javascript executes after the DOM (page) has loaded.
Example: (assuming of course you are including the jQuery library.)

<script type="text/javascript">


(文档).ready(功能(){ // 此代码仅应在页面完全加载后执行 }); </script>
(document).ready(function () { //this code should only execute after the page has fully loaded }); </script>


这篇关于Firefox扩展在页面加载之前正在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆