Skip to content

Instantly share code, notes, and snippets.

View Eralpozcan's full-sized avatar
🏠
Working from home

Eralp Eralpozcan

🏠
Working from home
View GitHub Profile
Process Swiper CSS Imported Event Duration CLS FCP FP LCP TTFB Gist
Swiper with UseImage Yes 2.93s 0.226 733.4ms 733.4ms 1.207s 80.20ms Link
Swiper with Img Tag Yes 2.67s 0.392 383.4ms 383.4ms 1.157s 35.60ms Link
Swiper with Img and Lazy Yes 2.06s 0.253 391ms 391ms 791.5ms 18.60ms Link
Swiper with Img and Lazy No 1.78s 0.218 312.9ms 312.9ms 693.7ms 8ms Link
@Eralpozcan
Eralpozcan / Swiper1UseImage.vue
Last active June 21, 2023 23:51
Sentry performance analysis with Swiper Example
<script setup>
import 'swiper/css';
import 'swiper/css/navigation';
import 'swiper/css/pagination';
import 'swiper/css/mousewheel';
import 'swiper/css/autoplay';
import 'swiper/css/parallax';
import 'swiper/css/a11y';
//-- Other imports and functions
await axios
.post(process.env.VUE_APP_API + "/account/register", userData.user)
.then((response) => {
console.log(response);
} catch (error) {
console.error(error);
}
})
.catch((err) => {
console.error(err);