On Fri, Jul 20, 2018 at 8:25 AM Levi Morrison <morrison.l...@gmail.com> wrote:
>
> On Fri, Jul 20, 2018 at 7:15 AM Jim Nagel <j...@archivemag.co.uk> wrote:
> >
> > Hi.  I'm a novice at PHP, so I frequently need to refer to your online
> > manual at www.php.net
> >
> > Unfortunately on my non-mainstream browser -- Netsurf, running on
> > RiscOS -- the pages at PHP.net are sooooo paiiiiinfully slooooow to
> > render.  If the page is lengthy, it takes ages to scroll.
> >
> > Curious, I asked the Netsurf developers what mechanism might be
> > causing the unusual sluggishness.
> >
> > They investigated and replied:
> >
> >      It's because of this SVG being used as a tiled background on
> >      the HTML element:    http://php.net/images/bg-texture-00.svg
> >
> >      Since it's an SVG it bypasses all the optimisations we have
> >      [in Netsurf] for tiled bitmap redraw.
> >
> >      It also isn't a filled rectangle, it's just strokes, so it
> >      doesn't get "knocked out" by our normal rendering
> >      optimisations.
> >
> >      Finally it uses opacity, which wouldn't help either,
> >      although I think we ignore that anyway for now.
> >
> >      It could potentially be optimised by pre-rendering it once
> >      to a bitmap, but it would be a fair amount of effort for
> >      what is a pretty uncommon case.
> >
> >      For now, I'd try just toggling background images off in the
> >      menu for that window, and forcing a redraw.
> >
> > That final suggestion works here, sort-of, but has to be applied again
> > and again.
> >
> > I tried viewing the PHP.net pages from Firefox and Chrome on Windows
> > and Android devices.  Must admit that your background, if it displays
> > at all, is hard to notice!  Is my eyesight missing something?
> >
> > Dare I suggest to the PHP.net webmasters that you simply dispense with
> > the SVG background?  Is it really worth while?
> >
> > Thanks for listening.  Best wishes from this niche.  (And I am
> > enjoying my forays into PHP.)
> >
> > --
> > Jim Nagel                        www.archivemag.co.uk
> >    Abbey Press   32 Norbins Rd        (01458) 83 3603
> >    Glastonbury   BA6 9JG         pocket 0797 415 3861
> >
> > --
> > PHP Webmaster List Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
> We can probably remove it. I'm curious what about it is really so
> slow, though. Opacity is used all over the place, and SVGs have been
> increasingly more popular. Would making the image larger have any
> effect? I'm wondering if repeating the image is causing issues because
> it is so small.

For instance, would this SVG perform any differently?

<svg xmlns="http://www.w3.org/2000/svg"; width="8" height="8">
  <path fill="none" xmlns="http://www.w3.org/2000/svg";
style="stroke:#000;stroke-width:.5;stroke-opacity:.25" d="M 4,0 0,4
4,8 8,4 Z M 0,0 8,8 M 8,0 0,8" />
</svg>

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to