技術情報

Tips to improve website page load speed

You also know slow-loading website will impact user experience. Pages that load fast have better user retention and lower bounce rates, and win user’s trust faster.

3 Tools to Measure Page Speed

Google Search Console

Although it technically doesn’t measure site speed, but you can use the new core web vitals report to find loading issues you need to take care of.

PageSpeed Insights

Developed by Google, PageSpeed Insights is a site speed tester capable of identifying underlying load speed issues. It’s as simple as entering the URL you want to inspect, and the tool will crawl your site and create a full report.

GTmetrix

If you want more advanced features or if you want to test your page speed on specific locations, GTmetrix is a helpful tool.

2 Tips to Improve Your Website’s Page Load Speed

1.Optimize your image

Image file size

You should aim for the smallest file size possible. A good mark for big images is 150kb to 500kb per image.

File format

It’s not uncommon to use PNG images when creating content. They are easier to handle, after all. Without getting into a whole debate on image extensions, we recommend using JPGs. These have become the standard format for images on the web. They do not lose quality, and their file size is small.

Image dimensions

Make sure to upload a decent image that doesn’t lose quality while scaling. I.e., 800 x 1200 images are the most common on articles.

2.Use lazy loading

We want to make the browser render the top of the page first (above the fold content) before loading the rest of the page.

The great thing about it is that we can implement it natively using the loading attribute in our images and iframes.

<img src=”myimage.jpg” loading=”lazy” alt=”…” />

<iframe src=”content.html” loading=”lazy”></iframe>

These attributes will tell the browser only to download the elements once the user has scrolled to the element and it is now visible on the viewport.

I hope you have found this useful. 

By Ami



MySQL 照合順序設定による検索結果の違い(2)

今回はデータベースを作成する際の照合順序設定によってどのように検索結果に影響を与えるかをシェアしたいと思います。
本記事は前回の「MySQL 照合順序設定による検索結果の違い(1)」の続きとなります。

続きを読む

MySQL 照合順序設定による検索結果の違い(1)

今回はデータベースを作成する際の照合順序設定によってどのように検索結果に影響を与えるかをシェアしたいと思います。

続きを読む

Snap social map

You might heard about the snapchat , one of the popular social media platforms owned by snap Inc. Well, you also might want to know about the snap map. Snap wants users to get a more personal view of the world around them.

Image Credit: TechCrunch

While products like Google Maps and Apple Maps have relied on data partners to improve the quality of their contextual insights, Snap hopes to provide users with a more practical approach to mix and match third-party links with their Snap which allows users to create a view of their geographic environment tailored to their interests.

Snap Map has aimed to be a fundamentally social product, designed for people and friends rather than cars and directions. Theoretically, the layers will allow your users some customization when deciding which POIs (point of interest) they want their map to be structured.

Users will be able to rate shows at nearby concert venues and can purchase tickets within the Snapchat app. With The Infatuation, users can scan the map for editorialized recommendations for nearby restaurants with lists and reviews from the site. More of these partnerships are on the way, although it doesn’t appear that Snap is planning to open the floodgates to developers anytime soon.

Snap Inc says that Snap Map has some 250 million monthly active users.

Yuuma



TypeScript

TypeScript stands in an unusual relationship to JavaScript. TypeScript offers all of JavaScript’s features, and an additional layer on top of these: TypeScript’s type system.

TypeScript is a modern age JavaScript development language.

There are a lot of benefits of adding static typing to JavaScript. You’ll not see that undefined pop up in your applications anymore. Refactoring code will not be a nightmare anymore. And many more. A study shows that 15% of JavaScript bugs can be detected by TypeScript.

Types — The difference between JS and TS

Programming languages fall into two categories: statically typed or dynamically typed.

Function getWidth(width){
 return num + 3
}

Here, the type of variable width is not known. If I call this with, getWidth(“I love TS”) it will print I love TS3. This is known as type coercion. If it can, Javascript will see that it is trying to add a string and a number together, and it will convert the number to its string equivalent and concatenate them.

With TypeScript, I could do the following:

function getWidth(width: number) {
    return num + 3
}

We just added the type of variable width as a number. If I call add(“I love TS”) now, it’ll throw a compilation error — Argument of type string is not assignable to parameter of type number .

Catching the error instantly allows me to save time and check why my input is not the type I think it is, rather than having to trace my steps back much later in the process without being sure where the error is occurring.

Benefits of Static Typing

  • TypeScript is that it offers the ability to add static types to your JavaScript code.
  • Static typing allows you to catch errors earlier in the debugging process.
  • Adding strict types makes code more readable. A code that speaks for itself can offset the lack of direct communication between team members.

By Ami




アプリ関連ニュース

お問い合わせはこちら

お問い合わせ・ご相談はお電話、またはお問い合わせフォームよりお受け付けいたしております。

tel. 06-6454-8833(平日 10:00~17:00)

お問い合わせフォーム