The images in the demo page have been lazy-loaded.
In fact, the loading is controlled by the browser:
It only starts the request when the image is to be displayed
in the viewport after scrolled the page.

------------------------------
 Su Shuang (100pah)
------------------------------



On Mon, 26 Aug 2019 at 21:45, Yi Shen <shenyi....@gmail.com> wrote:

> We can try lazy load the demo.
>
> Also there is no need to use full version of ECharts. A customized version
> will reduce much file size.
>
> On Mon, Aug 26, 2019 at 9:34 PM Ovilia <oviliazh...@gmail.com> wrote:
>
> > Another thing we should discuss is that whether we need the interactive
> > chart in the index.html. It costs 700k for a full version of ECharts.
> Even
> > if it's necessary to have the interactive chart, we should build a minium
> > version for this chart.
> > I think maybe we should probably use an image instead. Because the
> > interactive chart shows the feature of cross-platform behavior rather the
> > the interaction of ECharts, so an image may well state the point.
> >
> > Wenli
> >
> >
> > On Mon, Aug 26, 2019 at 9:19 PM SHUANG SU <sushuang0...@gmail.com>
> wrote:
> >
> > > Thanks Wenli.
> > >
> > > Next, we should resolve the problems:
> > >
> > > (1) Those resources that "not too big but take a too long time" in the
> > > example page:
> > > https://echarts.apache.org/examples/en/ , which cause me to be unable
> to
> > > find the target example.
> > >
> > > [image: image.png]
> > >
> > > [image: image.png]
> > >
> > > (2) The initial request takes a long time (over 10s) sometimes:
> > > [image: image.png]
> > >
> > >
> > >
> > >
> > > ------------------------------
> > >  Su Shuang (100pah)
> > > ------------------------------
> > >
> > >
> > >
> > > On Mon, 26 Aug 2019 at 20:56, Kevin A. McGrail <kmcgr...@apache.org>
> > > wrote:
> > >
> > >> Thanks Wenli.  Do you know in the new version how small it is now
> > >> compared to the 10.3MB?
> > >>
> > >> On 8/26/2019 08:49, Ovilia wrote:
> > >> > The change is available at
> > >> >
> > >>
> >
> https://github.com/apache/incubator-echarts-website/commit/f266cfffa1ced1965ad02b1e71482ce4d26dc928
> > >> >  .
> > >> > I compressed most of the images losslessly. For some very large
> ones,
> > I
> > >> > shrunk the image sizes if possible.
> > >> > For example, the largest file scatterGL4.png was 932KB with the
> width
> > of
> > >> > 800px. I shrunk it into the width of 400px because it's a
> placeholder
> > >> image
> > >> > for a video, so a little blurry is acceptable. The size after the
> > >> change is
> > >> > 214KB.
> > >> >
> > >> > But I don't think the website has updated due to expire time
> setting.
> > It
> > >> > was set to be 30 days.
> > >> > I've set it to be one hour a few hours ago, but it seems not to be
> > >> updated
> > >> > yet.
> > >> > I'll ask infra for help if it doesn't work tomorrow.
> > >> >
> > >> > Wenli
> > >> >
> > >> >
> > >> > On Mon, Aug 26, 2019 at 8:41 PM Kevin A. McGrail <
> kmcgr...@apache.org
> > >
> > >> > wrote:
> > >> >
> > >> >> Thanks.  Some of the images have been compressed from your initial
> > >> report.
> > >> >>
> > >> >> I think 10.3MB is too big too!
> > >> >>
> > >> >> Is it better (or at least slightly smaller) now?  Which URL are you
> > >> >> using to make sure I check the right place?
> > >> >>
> > >> >>
> > >> >> Best,
> > >> >>
> > >> >> KAM
> > >> >>
> > >> >> On 8/26/2019 08:38, Zu Ming wrote:
> > >> >>> The index page:
> > >> >>>   Network Data: 79 request, 10.3MB transferred, it's too big
> > >> >>>
> > >> >>>
> > >> >>> Some image files should be compressed, like:
> > >> >>>   scatterGL4.png: 932KB
> > >> >>>   index-4.jpg: 452KB
> > >> >>>   map.png: 278KB
> > >> >>>   pipeline.png: 215KB
> > >> >>>   ……
> > >> >>>
> > >> >>>
> > >> >>>
> > >> >>>
> > >> >>> thank you
> > >> >>>
> > >> >>>
> > >> >>> --
> > >> >>>
> > >> >>> At 2019-08-26 20:28:31, "Kevin A. McGrail" <kmcgr...@apache.org>
> > >> wrote:
> > >> >>>> Zu, I'm afraid the image (screenshot?) did not make it through
> via
> > >> >>>> email.  Can you elaborate on what you are seeing, please?
> > >> >>>>
> > >> >>>> On 8/26/2019 01:01, Zu Ming wrote:
> > >> >>>>>
> > >> >>>>>
> > >> >>>>>
> > >> >>>>> --
> > >> >>>>>
> > >> >>>>>
> > >> >>>>>
> > >> >>>>>
> > >> >>>>>
> > >> >>>> --
> > >> >>>> Kevin A. McGrail
> > >> >>>> kmcgr...@apache.org
> > >> >>>>
> > >> >>>> Member, Apache Software Foundation
> > >> >>>> Chair Emeritus Apache SpamAssassin Project
> > >> >>>> https://www.linkedin.com/in/kmcgrail - 703.798.0171
> > >> >>>>
> > >> >> --
> > >> >> Kevin A. McGrail
> > >> >> kmcgr...@apache.org
> > >> >>
> > >> >> Member, Apache Software Foundation
> > >> >> Chair Emeritus Apache SpamAssassin Project
> > >> >> https://www.linkedin.com/in/kmcgrail - 703.798.0171
> > >> >>
> > >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
> > >> >> For additional commands, e-mail: dev-h...@echarts.apache.org
> > >> >>
> > >> >>
> > >> --
> > >> Kevin A. McGrail
> > >> kmcgr...@apache.org
> > >>
> > >> Member, Apache Software Foundation
> > >> Chair Emeritus Apache SpamAssassin Project
> > >> https://www.linkedin.com/in/kmcgrail - 703.798.0171
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
> > >> For additional commands, e-mail: dev-h...@echarts.apache.org
> > >>
> > >>
> >
>
>
> --
> Yi Shen
> Senior Developer
> Baidu, Inc.
>

Reply via email to