[help] Keyboard Lag

Recently my iPhone X had this weird lag when I’m typing with the default keyboard on safari.

For first few letters I type, it takes about 2 seconds to load, then all of sudden it loads the rest. This happens every time when I’m typing something in the URL section and it is exclusive to safari.

I’m on iOS 11.4, is there any fix for this. I believe there should be other user who experience the same issue as me.