browserstate / ajaxify

Ajaxify your entire website instantly with this simple drop-in script using the HTML5 History API with History.js and jQuery ScrollTo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bookmarklet fails to load jquery

thinsoldier opened this issue · comments

I get endless console.log "Loading jQuery" messages.

The script element for //raw.github.com/browserstate/ajaxify/master/ajaxify-bookmarklet-helper.js gets successfully added to the end of my

But the line in that file:
window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>');

doesn't seem to actually work.

I'm using firefox 20. That document.write line doesn't seem to work when run by itself via the console. But document.write('foo'); does work.

Should be work fine now!

Nope. On some sites that have no js library at all I get an infinie loop of "loading jquery" console.log calls.

On a site that already has jquery I get a blank page after clicking the bookmarklet. Seems to be some issue with document.write in firefox.

Could you add an actual anchor containing the bookmarklet code to the readme so people can just click+drag that to their bookmarks toolbar.

I haven't tested in chrome yet because chrome's bookmarks won't let me paste the bookmarklet code into them. I probably would need to edit it to look like a real url without entities for ://

In which browser on which platforms does the bookmarklet work for you?