Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent loading mercury.js on all pages? #479

Open
wingleungchoi opened this issue Apr 8, 2015 · 0 comments
Open

How to prevent loading mercury.js on all pages? #479

wingleungchoi opened this issue Apr 8, 2015 · 0 comments

Comments

@wingleungchoi
Copy link

wingleungchoi commented Apr 8, 2015

Hi, i followed the http://railscasts.com/episodes/296-mercury-editor?view=comments&_=1428483497495.
I know to use "saveUrl" rather than "saveURL", turn off turbolink and data-mercury="full". It works.

However, i am thinking how to prevent loading mercury.js on all pages.
Do mercury.js have to be in app/assets/javascripts?
I tried to store it another path and use javscript_include_tag to require it on particular page. It seems it doesn't change the saveUrl and redirect window.location.
Remove //= require_tree . in application.js is the only way to prevent load it on all pages?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/10702407-how-to-prevent-loading-mercury-js-on-all-pages?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant