WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • how to deal with data-src
  • Print
Pages: [1]   Go Down

Author Topic: how to deal with data-src  (Read 12023 times)

johnbroeckaert

  • Guest
how to deal with data-src
« on: February 07, 2018, 08:33:38 AM »
Since google is going to pay more and more attention to mobile first and the speed of a mobile site, I have looked into a way to integrate lazyload within the sites. Soon I come to the use of at least 2 images with different sizes. To be able to send that via a lazyload, most js scripts use code such as:
Code: [Select]
<img
alt = "picture"
src = "low-quality.jpg"
data-src = "normal-quality.jpg"
class = "lazyload" />
Do I get that done in WB without having to go to the source code every time?
Thanks
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • how to deal with data-src
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2