Skip to content

Commit 1268faf

Browse files
committed
Translate preconnect page to Turkish
1 parent e2b8dba commit 1268faf

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

‎src/content/reference/react-dom/preconnect.md‎

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: preconnect
44

55
<Intro>
66

7-
`preconnect` lets you eagerly connect to a server that you expect to load resources from.
7+
`preconnect`, kaynak yüklemeyi beklediğiniz bir sunucuya önceden bağlanmanızı sağlar.
88

99
```js
1010
preconnect("https://example.com");
@@ -16,11 +16,11 @@ preconnect("https://example.com");
1616

1717
---
1818

19-
## Reference {/*reference*/}
19+
## Başvuru dokümanı {/*reference*/}
2020

2121
### `preconnect(href)` {/*preconnect*/}
2222

23-
To preconnect to a host, call the `preconnect` function from `react-dom`.
23+
Bir sunucuya önceden bağlanmak için `react-dom` içindeki `preconnect` fonksiyonunu çağırın.
2424

2525
```js
2626
import { preconnect } from 'react-dom';
@@ -32,34 +32,34 @@ function AppRoot() {
3232

3333
```
3434

35-
[See more examples below.](#usage)
35+
[Daha fazla örnek için aşağıya bakınız.](#usage)
3636

37-
The `preconnect` function provides the browser with a hint that it should open a connection to the given server. If the browser chooses to do so, this can speed up the loading of resources from that server.
37+
`preconnect` fonksiyonu, tarayıcıya verilen sunucuyla bir bağlantı açması gerektiğine dair bir ipucu verir. Tarayıcı bunu yapmayı seçerse, o sunucudan yüklenecek kaynaklar daha hızlı yüklenebilir.
3838

39-
#### Parameters {/*parameters*/}
39+
#### Parametreler {/*parameters*/}
4040

41-
* `href`: a string. The URL of the server you want to connect to.
41+
* `href`: bir string. Bağlanmak istediğiniz sunucunun URL'si.
4242

4343

44-
#### Returns {/*returns*/}
44+
#### Dönüş değeri {/*returns*/}
4545

46-
`preconnect` returns nothing.
46+
`preconnect` hiçbir şey döndürmez.
4747

48-
#### Caveats {/*caveats*/}
48+
#### Uyarılar {/*caveats*/}
4949

50-
* Multiple calls to `preconnect` with the same server have the same effect as a single call.
51-
* In the browser, you can call `preconnect` in any situation: while rendering a component, in an Effect, in an event handler, and so on.
52-
* In server-side rendering or when rendering Server Components, `preconnect` only has an effect if you call it while rendering a component or in an async context originating from rendering a component. Any other calls will be ignored.
53-
* If you know the specific resources you'll need, you can call [other functions](/reference/react-dom/#resource-preloading-apis) instead that will start loading the resources right away.
54-
* There is no benefit to preconnecting to the same server the webpage itself is hosted from because it's already been connected to by the time the hint would be given.
50+
* Aynı sunucu için `preconnect`'i birden çok kez çağırmak, tek bir çağrıyla aynı etkiye sahiptir.
51+
* Tarayıcıda `preconnect`'i her durumda çağırabilirsiniz: bir bileşeni render ederken, bir Effect içinde, bir olay yöneticisinde ve benzeri yerlerde.
52+
* Sunucu taraflı render sırasında veya Sunucu Bileşenleri render edilirken `preconnect` yalnızca bir bileşeni render ederken ya da bir bileşenin render edilmesinden kaynaklanan asenkron bir bağlamda çağırırsanız etki eder. Diğer tüm çağrılar yok sayılır.
53+
* İhtiyaç duyacağınız kaynakları tam olarak biliyorsanız, bunun yerine kaynakları hemen yüklemeye başlayan [diğer fonksiyonları](/reference/react-dom/#resource-preloading-apis) çağırabilirsiniz.
54+
* Web sayfasının barındırıldığı sunucunun kendisine önceden bağlanmanın bir faydası yoktur, çünkü ipucu verildiği sırada bu sunucuyla zaten bağlantı kurulmuş olur.
5555

5656
---
5757

58-
## Usage {/*usage*/}
58+
## Kullanım {/*usage*/}
5959

60-
### Preconnecting when rendering {/*preconnecting-when-rendering*/}
60+
### Render sırasında önceden bağlanma {/*preconnecting-when-rendering*/}
6161

62-
Call `preconnect` when rendering a component if you know that its children will load external resources from that host.
62+
Bir bileşenin alt elemanlarının belirli bir sunucudan harici kaynaklar yükleyeceğini biliyorsanız, o bileşeni render ederken `preconnect`'i çağırın.
6363

6464
```js
6565
import { preconnect } from 'react-dom';
@@ -70,9 +70,9 @@ function AppRoot() {
7070
}
7171
```
7272

73-
### Preconnecting in an event handler {/*preconnecting-in-an-event-handler*/}
73+
### Bir olay yöneticisinde önceden bağlanma {/*preconnecting-in-an-event-handler*/}
7474

75-
Call `preconnect` in an event handler before transitioning to a page or state where external resources will be needed. This gets the process started earlier than if you call it during the rendering of the new page or state.
75+
Harici kaynaklara ihtiyaç duyulacak bir sayfaya veya state'e geçmeden önce, bir olay yöneticisinde `preconnect`'i çağırın. Böylece işlem, yeni sayfa veya state render edilirken çağırmanıza kıyasla daha erken başlar.
7676

7777
```js
7878
import { preconnect } from 'react-dom';

0 commit comments

Comments
 (0)