Bitcoin Forum

Bitcoin => Project Development => Topic started by: HenrySav on September 19, 2017, 06:46:46 AM



Title: Embedding Bitcoin / AUD charts without losing pagespeed
Post by: HenrySav on September 19, 2017, 06:46:46 AM
Hi,

Newbie question I know...

I want to embed bitcoin / AUD price chart in my website but I am finding it hard to understand what the best way to do this is...

There are lot of free widgets and java code scripts that I can copy and paste but what I am finding is that they are extremely slow to load and substantially slow down teh site.

Is there a way around this? 


Title: Re: Embedding Bitcoin / AUD charts without losing pagespeed
Post by: escrow.ms on September 19, 2017, 10:23:36 AM
Find someone who can implement this https://github.com/hshoff/viewsource It's damn fast.

Demo:
 https://viewsource.now.sh/bitcoin


Title: Re: Embedding Bitcoin / AUD charts without losing pagespeed
Post by: HeRetiK on September 19, 2017, 01:35:47 PM
Hi,

Newbie question I know...

I want to embed bitcoin / AUD price chart in my website but I am finding it hard to understand what the best way to do this is...

There are lot of free widgets and java code scripts that I can copy and paste but what I am finding is that they are extremely slow to load and substantially slow down teh site.

Is there a way around this? 

If you haven't already: Move the JavaScript script tags to the bottom of the page, just before the closing </body> tag. This way the rest of your page can load before the chart script files.

It won't speed up the widget loading, but should prevent those widgets from slowing down the rest of your site.


Title: Re: Embedding Bitcoin / AUD charts without losing pagespeed
Post by: HenrySav on September 19, 2017, 01:41:44 PM
Great advice @HeRetiK, I already did that.

I wonder how google judge your website speed for SEO purposes - If it's full website loading time then I'm screwed as it's >7s


Title: Re: Embedding Bitcoin / AUD charts without losing pagespeed
Post by: HeRetiK on September 19, 2017, 03:26:23 PM
Great advice @HeRetiK, I already did that.

I wonder how google judge your website speed for SEO purposes - If it's full website loading time then I'm screwed as it's >7s

Got a link to your page? Have you tried running your site through a speed analyzer such as gtmetrix.com? Sometimes those analyzers can offer meaningful input on what to improve.