[ 
https://issues.apache.org/jira/browse/JSPWIKI-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18134726#comment-18134726
 ] 

Arturo Bernal commented on JSPWIKI-1097:
----------------------------------------

Numbers from master to size the work, by a text search for common Mootools 
calls (new Request, new Element, $$(, addEvent, getElement, Class( ): 57 of the 
72 JavaScript files of the war that are not libraries use that API, and the 
only file that mentions jQuery is behaviors/TableX.Filter.js. The libraries are 
kept apart in lib and in wiki-wysiwyg/Source. The search is a rough one and it 
does not tell how hard each file is to migrate. Leaving the issue open.

> Gradually replace mootools js library by native js/css3  
> ---------------------------------------------------------
>
>                 Key: JSPWIKI-1097
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1097
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Templates and UI
>            Reporter: Dirk Frederickx
>            Priority: Minor
>             Fix For: FutureVersion
>
>
>  
> Over the past years, web standards in modern browsers (html, css, js) have 
> rapidly evolved.  Large javascript libraries (jspwiki uses mootools)  have 
> become less needed  (eg less need for cross-browser hacks) and most of them 
> have stopped active development.
>  * better dom manipulation api's are supported natively
>  * advanced animation / transition effects are supported by css with better 
> performance
>  * the size of js to be loaded can be reduced
>  * syntactical utilities can be replaced by using latest evolution of 
> javascript language  
> Adopting native browser features implies to stop supporting (very) old 
> browsers.
> For JSPWiki  =>
>  * provide support for Chrome, Safari, Firefox, Edge, Opera. (current/stable 
> version)
>  * IE11 will be supported, but support for IE10 and earlier is dropped
> If older browsers would still be required,  
> [polyfills|https://developer.mozilla.org/en-US/docs/Glossary/Polyfill] could 
> be used. 
>  
>  
> APPROACH
> We will adopt "vanilla" JS wherever possible;  with the help of a small set 
> of helper js functions; to keep the javascript light and readable.
> (inspired by [Lea Verou's 
> Bliss|http://lea.verou.me/2015/12/introducing-bliss-a-3kb-library-for-happier-vanilla-js/]
>  project)
> The transition of JSPWIKI will be done gradually.  We've actually started 
> already to adopt new css and js features in the past.
> From 2.11.0-M4 we will actively start replacing the mootools api in existing 
> javascript routines.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to