Hi all, We all know we can include JS files using app.add_js_file. This however inserts the JS in *every* html page. I was wondering if there is a proper way to do so or if someone has come up with a possible solution.
I think this could be useful in many scenarios. Think for example of a web site with lots of mathjax code in only one page: by using add_js_file, the js would be included in all pages, although not necessary. More generally, if you use an extension that adds its own JS, that JS will be added to all pages, although it is necessary only in pages on which you use the extension's functionality. Thanks for any thoughts! Stefano -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/5d7540f6-f206-4949-964c-04a72d9fc5f7n%40googlegroups.com.