in Education by
Is it possible to remove ( not hide using display:none ) some part of HTML from source for mobile using Javascript or any server side technique? For example suppose below is the code inside of one of the page of website For example this is page for desktop Browsers.

A Responsive page

This is a Page Sub Title

Some content...

Demonstrating EM and STRONG

This text will have more importance>

<!-- .hs1 -->
<!-- .main -->

copyright © year

And using same page for Mobile devices I only want to remove from the source. I can't use different page because is CMS based. By updating content once I want to show on all devices. But in mobile version of Website I just want to remove (hide) some things from source. because If i will just use display:none mobile will load same amount of data of desktop version which is not for performance on mobile. Can we remove some specific part of source for mobile using Javascript or server side technique? Edit after some responses As many user commented that JavaScript cannot be used to reduce the payload to mobile users. So what could be the server side solution to deliver the same page but remove some part of it from source before delivering it? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You can detect mobile browser on the server and just not render this tag. There's no point in removing this using javascript, if you do this to save bandwidth.

Related questions

0 votes
    Is it possible to maintain sessions in REST on the server-side? 1. No 2. Yes 3. Depends on situation 4. I don’t know...
asked Jun 24, 2021 in Technology by JackTerrance
0 votes
0 votes
    How do you focus a particular part of the HTML page in JavaScript? (a) hover() (b) focus() (c ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    we're planning to use some robotics for copy and paste some routine information to our internal tool. ... machine learning concepts Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    we're planning to use some robotics for copy and paste some routine information to our internal tool. ... machine learning concepts Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    It is possible to convert the existing HTML, CSS websites to hybrid apps using PhoneGap. Please select the correct options from below (a)False (b)True...
asked Dec 11, 2020 in Education by Editorial Staff
0 votes
    Which side of the image map can be created using JavaScript? (a) Server side (b) Client side (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    I am pulling information from a Page note from the Facebook API. In the output I get an image URL ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    I am pulling information from a Page note from the Facebook API. In the output I get an image URL ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    If you've accidentally clicked any pop-up which seems malicious, it is recommended to take steps to remove ... for-Cyber Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Oct 31, 2021 in Education by JackTerrance
...