F
F
FlexibleCurd2015-11-16 23:40:50
css
FlexibleCurd, 2015-11-16 23:40:50

How do you optimize the layout of a responsive site?

Hello. I wanted to ask how you delete, add scripts, pictures, etc. for different screen extensions? (for example, disable the wow.js plugin for screens below 480px, for the same extension, remove the image and add the same one, but with different sizes (that is, smaller (well, or larger, depending on the situation)))/
In general, we are talking about optimizing files so that different extensions do not load the user with extra kb-mi (mb-mi?)) of traffic.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
De YURII, 2015-11-16
@Dejurin

I do resizes for desktop and mobile in advance, with the help of detection I determine that the user has logged in through the mobile and stick pictures of a certain size to him.
Now it’s a sin to complain about hosting space, there are no problems and you can store several versions of the resize.
For scripts and styles, also use detect.
For example, in PHP, as an option, you can use such mobiledetect.net

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question