Page load Problem - firefox-addon

My web page is not loading properly.How to debug this problem?Is there any addon on mozilla for this?

Depending on what you need to test you can get away with Firebug - for example XUL page without much XBL.
If you need to test some chrome JavaScript you might use Chromebug: http://getfirebug.com/releases/chromebug/
If Firebug nor Chromebug can help you can try JavaScript Debugger aka Venkman: https://addons.mozilla.org/en-US/firefox/addon/216/
Venkman is probably most powerful but not the friendliest one.
Also, if nothing else helps you can use alerts.

It is a static web page, or you have a backend with a specific language?
You can try use firebug to figure out the problems, but if you have an backend application, so you have to debug the app instead of the page.

Related

How to open/close a URL via/ a script

I was wondering whether there was a way to automate the opening of "www.google.com", view the page for a set time (500 milliseconds), close the web page and then repeat the process multiple times. Headless solutions (those that do not involve the page physically opening up on the screen) is preferred.
So far, I have looked into HtmlUnit with Java but it doesn't work because some web pages use javascript and it does not work well with javascript.
I have tried Selenium with Java but I do not want the page to constantly open up on my screen (it is not a headless solution).
Any ideas how to achieve this?
Nightmare might do the trick:
The following code should provide headless testing:
var nightmare = Nightmare({ show: false});

How to contact Grails web maintainers?

This probably isn't the best place to post this question. I can't find any way of contacting the Grails.org web site maintainers. I've looked all over the web site and in "Community" but can't find what looks like the right thing. Can someone point me in the right directions please?
My problem is that the presentation for 1) What is Grails on https://grails.org/learn just results in an empty pop-up box. This happens on both Chrome and Firefox.
Thanks in advance.
Issues for the website can be filed at http://jira.grails.org/browse/WEBSITE
That is a flash presentation and the url you have opened uses SSL (secured channel) as a result it tries to block the flash content as unauthorized script.
In Chrome, make sure you load the script as an unsafe script (from the address bar) and you should be able to see the presentation. Same would be applicable for Firefox.

how to use the new mozilla's console in xulrunner?

is there a way to embed the new firefox's console in a xulrunner application?
I always used to do so:
<iframe type="chrome" src="chrome://global/content/console.xul" flex="1">
but, I would love to use the new one if possible. I will mainly use it for JS debugging so also the scratchpad would be ok!
thank you in advance
It's not possible, devtools are part of the browser app (aka Firefox).

Google Analytics MIME type issue in Chrome using Rails 3

I'm adding GA to a Rails 3 app, which would normally be extremely simple, of course. I've added the GA JS snippet, which is rendering just fine. Everything works perfectly in Safari. In Chrome, however, it's giving me a console error: Resource interpreted as Script but transferred with MIME type text/html: "about:blank", pointing to the JS line that loads the ga.js file: s.parentNode.insertBefore(ga, s). Some things I've investigated:
I created a plan HTML page with the JS snippet, and it loads outside Rails in Chrome with no error.
The same HTML page, when put in /public, gives the error above.
The same HTML page, loaded in Safari from /public, doesn't give any error according to Firebug.
I tried the GA Debug extension in Chrome, but it remains silent, because ga.js isn't getting loaded.
Looking at the developer console in Chrome, I see a request for "http://www.google-analytics.com/ga.js" that seems to stay in "pending" state, and a redirect to "about:blank" seemingly initiated by http://www.google-analytics.com/ga.js, which makes very little sense.
So this seems to be related to Rails (since the snippet works in the HTML outside Rails), and doesn't affect Safari, but other than that I'm stumped. Hopefully I've just been staring at it wrong, and someone else will point out the obvious to me...? Anyone come across this before? Any ideas will be very much appreciated.
Came across this issue myself. "Disconnect" disabled share buttons on my site (g+, twitter and fb). Had to remove it to view the site properly.

How do i compute the Time For execution of Each Jquery Statement

Right now I am using jQuery completely for my project (ajax, validations). But I guess due to my statements I assume that it is taking more time and how can I optimize the time for execution of each statement? Say for example I have seen some posts in Stackoverflow saying this statement:
$("div#mydialog").bind('Dialogclose',function(){});
is much slower than this:
$("#mydialog").bind('Dialogclose',function(){});
How can I attain this conclusion? Do I have S Tools for this? How can I optimise the statements in jQuery? What are the best practices to be used in jQuery?
Why not use the PROFILE jquery plug-in from plugins.jquery.com, which was made for just this purpose: PROFILE jquery plug-in
Try running your pages with the FireQuery FireFox extension.
http://firequery.binaryage.com/
FireQuery allows you to inject jQuery Lint (https://github.com/jamespadolsey/jQuery-Lint) into a page, giving you information on jQuery errors and incorrect usage.
You can also use a JavaScript profiler, such as FireBug in FireFox, the IE Developer Console in IE8 or higher, Developer Tools in Chrome, etc. This will give you execution times in each browser which can then be optimized.

Resources