iMattPro / topicpreview

Topic Preview mouse-over preview effect for phpBB3
https://www.phpbb.com/customise/db/extension/topicpreview/
GNU General Public License v2.0
22 stars 14 forks source link

Use built-in function #2

Closed Pico closed 11 years ago

Pico commented 11 years ago

Instead of using path to javascript, it's better use built-in function. It moves js file after jquery, core in the template.

iMattPro commented 11 years ago

My only issue with this, is that INCLUDEJS method adds the <script> include of the plugin to the VERY bottom of the page, after the js script that is embedded into the page.

So that just means the function is being called before the plugin is actually loaded. It seems to work, but it makes me nervous to call a plugin-function before the plugin has actually been defined, which is why I was doing it the way I had it.