Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Re: JS2 design (was Re: Working towards branchingMediaWiki 1.16)

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


tparscal at wikimedia

Sep 24, 2009, 1:48 PM

Post #1 of 2 (467 views)
Permalink
Re: JS2 design (was Re: Working towards branchingMediaWiki 1.16)

On 9/24/09 1:40 PM, Jared Williams wrote:
>
>
>
>> -----Original Message-----
>> From: wikitech-l-bounces [at] lists
>> [mailto:wikitech-l-bounces [at] lists] On Behalf Of
>> Trevor Parscal
>> Sent: 24 September 2009 19:38
>> To: wikitech-l [at] lists
>> Subject: Re: [Wikitech-l] JS2 design (was Re: Working towards
>> branchingMediaWiki 1.16)
>>
>> On 9/24/09 9:31 AM, Jared Williams wrote:
>>
>>>>> * Automatically create CSS sprites?
>>>>>
>>>>>
>>>> That would be neat, but perhaps a bit tricky.
>>>>
>>>>
>>> Just trying to think how it'd work.
>>>
>>> Given a CSS selector, and an image, should be able to construct a
>>> stylesheet which sets the background property of the css
>>>
>> rules and an
>>
>>> single image.
>>>
>>> (#toolbar-copy, toolbar-copy.png)
>>> (#toolbar-copy:hover, toolbar-copy-hover.png)
>>>
>>> And the generated stylesheet would get concatenated with other
>>> stylesheets.
>>>
>>>
>
>> Again, I like sprites allot! But in reality, they are an
>> optimization technique that needs careful attention and can
>> cause problems if done improperly.
>>
> Providing CSS sprite support would be (I guess) just a service for
> modules/extensions to use, just as a part of the proposed client
> resource manager(?). So the mediawiki or an extension can put in a
> request for a some stylesheet or javascript be linked to, it could
> also request for images possibly via CSS sprites.
>
> So don't see how it should cause a problem.
>
> Jared
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
So you are saying that you believe a generic set of sprite-generation
utilities are going to be able to completely overcome the issues I
identified and be a better use of time (to design, develop and use) than
just creating and using sprites manually?

- Trevor

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


jared.williams1 at ntlworld

Sep 24, 2009, 2:34 PM

Post #2 of 2 (423 views)
Permalink
Re: JS2 design (was Re: Working towards branchingMediaWiki 1.16) [In reply to]

> -----Original Message-----
> From: wikitech-l-bounces [at] lists
> [mailto:wikitech-l-bounces [at] lists] On Behalf Of
> Trevor Parscal
> Sent: 24 September 2009 21:49
> To: wikitech-l [at] lists
> Subject: Re: [Wikitech-l] JS2 design (was Re: Working towards
> branchingMediaWiki 1.16)
>
> On 9/24/09 1:40 PM, Jared Williams wrote:
> >
> >
> >
> >> -----Original Message-----
> >> From: wikitech-l-bounces [at] lists
> >> [mailto:wikitech-l-bounces [at] lists] On Behalf
> Of Trevor
> >> Parscal
> >> Sent: 24 September 2009 19:38
> >> To: wikitech-l [at] lists
> >> Subject: Re: [Wikitech-l] JS2 design (was Re: Working towards
> >> branchingMediaWiki 1.16)
> >>
> >> On 9/24/09 9:31 AM, Jared Williams wrote:
> >>
> >>>>> * Automatically create CSS sprites?
> >>>>>
> >>>>>
> >>>> That would be neat, but perhaps a bit tricky.
> >>>>
> >>>>
> >>> Just trying to think how it'd work.
> >>>
> >>> Given a CSS selector, and an image, should be able to construct
a
> >>> stylesheet which sets the background property of the css
> >>>
> >> rules and an
> >>
> >>> single image.
> >>>
> >>> (#toolbar-copy, toolbar-copy.png)
> >>> (#toolbar-copy:hover, toolbar-copy-hover.png)
> >>>
> >>> And the generated stylesheet would get concatenated with other
> >>> stylesheets.
> >>>
> >>>
> >
> >> Again, I like sprites allot! But in reality, they are an
> optimization
> >> technique that needs careful attention and can cause
> problems if done
> >> improperly.
> >>
> > Providing CSS sprite support would be (I guess) just a service for

> > modules/extensions to use, just as a part of the proposed client
> > resource manager(?). So the mediawiki or an extension can put in a

> > request for a some stylesheet or javascript be linked to, it could

> > also request for images possibly via CSS sprites.
> >
> > So don't see how it should cause a problem.
> >
> > Jared
> >
> >
> > _______________________________________________
> > Wikitech-l mailing list
> > Wikitech-l [at] lists
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> So you are saying that you believe a generic set of
> sprite-generation utilities are going to be able to
> completely overcome the issues I identified and be a better
> use of time (to design, develop and use) than just creating
> and using sprites manually?
>
> - Trevor

I wouldn't say there a issues with CSS sprites, but there are
limitations which you have to be aware of before deciding on using
them, and therefore do not need overcoming.

In the context of providing toolbar imagery for UIs like a WYSIWYG
editor, or for playing video, audio, or for simple image editing, they
can remove a lot of round triping.

Jared





_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.