SVG Loading
$30-250 USD
ชำระเงินเมื่อจัดส่ง
Wanted: the coding answer to our problem.
We use svg spritesheet-one for our desktop site. The icon is delivered this way:
<div id="desktop"><svg class="icon-class"><use xlink:href="/sprites/spritesheet-one#icon-one"></use></svg></div>
<div id="mobile"><svg class="icon-class"><use xlink:href="/sprites/spritesheet-two#icon-one"></use></svg></div>
We don't need spritesheet-one for our mobile site, instead we will use "spritesheet-two".
How do we prevent spritesheet-one from loading at all for mobile?
Please respond with the price you need to provide the answer today.
Thank you.
หมายเลขโปรเจค: #14037272
เกี่ยวกับโปรเจกต์
มอบให้กับ:
You could use JavaScript to load either the desktop or mobile spritesheet (probably based on screen width). For a complete solution, you probably want to detect changes in screen width and possibly load the other sp เพิ่มเติม
freelancer 14 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ $138
I have good work experience with front end technologies. Solution to your problem will be (in a broad way): 1. Check if mobile 2. Use the respective spritesheet