https://bugzilla.wikimedia.org/show_bug.cgi?id=30650

--- Comment #13 from Tomasz Finc <[email protected]> 2011-09-06 20:58:56 UTC 
---
(In reply to comment #0)
> Created attachment 8991 [details]
> replacement for MobileFrontend/javascripts/application.js
> 
> The mobile site js is dependent on jQuery, which pretty much doubles the size
> of the average page. (Side notes: The current system of attaching events to
> elements via js after the document loads really doesn't make sense; see
> comments in attached script. Also, the current setup seems to have the js
> directly modify the content of the searchfield and title, instead of having
> them start with the right content. I don't know PHP so I can't help with 
> either
> of these.)

Thanks for the patch and continued work Yair. One thing that were going to have
to have community discussion about before we close this bug is wether we will
remove jQuery from all devices as this bug states or some bugs as
https://bugzilla.wikimedia.org/show_bug.cgi?id=29505 says.

There is no question that we want to keep payload size small. But as we start
to increase the functionality for mobile we want to start using established
frameworks that don't significant'y increase our payload but at the same time
we need to allow the ease of development to not have to re-invent functionality
and code each time we add a new feature. 

Having to do custom js work for each mobile feature will eventually cause our
payload to grow larger then we want it and it will further complicate our
implementation. We really need to not have both happen.

In order to do this we'll have to experiment with frameworks like
http://zeptojs.com/, http://joapp.com/, http://xuijs.com/, etc to see what will
give us the best balance for mobile while keeping compatibility with our PC
site using jQuery.

We'd love to get your help testing these.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to