Changes for page Skin Extension Tutorial

Last modified by Vincent Massol on 2023/10/10

<
From version < 32.4 >
edited by Alex Cotiugă
on 2016/08/25
To version < 33.1 >
edited by Paul Libbrecht
on 2016/11/03
>
Change comment: added a note about minification and how to avoid it.

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.acotiuga
1 +XWiki.polx
Content
... ... @@ -84,6 +84,8 @@
84 84  <script type='text/javascript' src='/xwiki/bin/jsx/XWiki/SkinExt?lang=en'></script>
85 85  {{/code}}
86 86  
87 +You may also note, that the browser is delivered a minified version of the script given in the object's text. This is good practice for the memory of the browser but may make it hard to debug. Using the extra parameter ##debug=true## is a way to prevent it as explained in the [[Debugging Page>>url:http://dev.xwiki.org/xwiki/bin/view/Community/Debugging]].
88 +
87 87  == Minimal StyleSheet eXtension ==
88 88  
89 89  Good, we wrote our first javascript extension. But, we see things big and we already are looking forward to modify the graphical appearance of wiki pages using those eXtensions. That's what **StyleSheet eXtensions** are meant for. And the good news is that it just works the same as javascript extensions, the only difference being that the code written is **CSS code**.

Get Connected