Sometimes where in an HTML file JavaScript and CSS files are loaded matters.
For example, you may need to put
<meta http-equiv="X-UA-Compatible" content="IE=edge">
not to have Internet Explorer behave as a legacy web browser.
But the meta tag doesn't take effect if it's preceded with a JavaScript or CSS file loading.
So in that case, you need to have the JavaScript and CSS loading lines after the meta tag.
To accomodate that,
JQueryPlugin is to be enhanced in the following manner.
- If {Plugins}{JQueryPlugin}{CheckPlaceholder} is true, it tries to replace
<!-- JQueryPlugin placeholder -->
with the JavaScript and CSS loading lines
- If the above is unsuccessful, it tries to insert the JavaScript and CSS loading lines at the beginning of the <head> tag, which has been the case
{Plugins}{JQueryPlugin}{CheckPlaceholder} is not absolutely necessary but it's better for skins not aware of this behavior.
--
TWiki:Main/HideyoImazu
- 2015-09-11