[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-721613-105":59,"doc-detail-721613-en":130,"doc-similar-721613":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","javascript-dead-code-identification-elimination-and-empirical-assessment","JavaScript Dead Code Identification, Elimination, and Empirical Assessment","","Web apps are built using HTML, CSS, and JavaScript, and developers commonly rely on third-party libraries and frameworks to improve productivity and code quality. This adoption can introduce JavaScript dead code—code implementing unused functionalities—whose download and parsing costs can worsen loading time and resource usage. The study presents Lacuna for automatic detection and elimination using static and dynamic analyses, and evaluates runtime overhead empirically in mobile web apps.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/javascript-dead-code-identification-elimination-and-empirical-assessment/721613/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/javascript-dead-code-identification-elimination-and-empirical-assessment/721613.png","ImageObject",300,407,{"name":92,"@type":93},"Helloiii","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-23","2026-11-19",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the paper address?","Question",{"text":112,"@type":113},"It addresses the presence of JavaScript dead code introduced by third-party libraries and frameworks, which increases download/parsing costs and negatively impacts loading time and resource usage.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does Lacuna detect and eliminate JavaScript dead code?",{"text":117,"@type":113},"Lacuna supports both static and dynamic analyses to automatically identify and remove dead code, and it is designed to be extensible without imposing constraints on coding style.",{"name":119,"@type":110,"acceptedAnswer":120},"What does the empirical evaluation measure and conclude?",{"text":121,"@type":113},"The evaluation measures runtime overhead in terms of energy consumption, performance, network usage, and resource usage on Android devices; results indicate improved loading time and fewer bytes transferred over the network after dead code removal.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},721613,1795060940,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":26,"preview_page_count":19,"preview_urls":144},5909897196768,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","VU Research Portal  \nJavaScript Dead Code Identification, Elimination, and Empirical Assessment  \nMalavolta, Ivano; Nirghin, Kishan; Scoccia, Gian Luca; Romano, Simone; Lombardi, Salvatore; Scanniello, Giuseppe; Lago, Patricia  \npublished in  \nIEEE Transactions on Software Engineering 2023  \nDOI (link to publisher)  \n10.1109/TSE.2023.3267848  \ndocument version  \nPublisher's PDF, also known as Version of record  \ndocument license  \nArticle 25fa Dutch Copyright Act  \nLink to publication in VU Research Portal  \ncitation for published version (APA)  \nMalavolta, I. , Nirghin, K. , Scoccia, G. L. , Romano, S. , Lombardi, S. , Scanniello, G. , & Lago, P. (2023) . JavaScript Dead Code Identification, Elimination, and Empirical Assessment. IEEE Transactions on Software Engineering, 49(7), 3692-3714 . [https://doi.org/10.1109/TSE.2023.3267848](https://doi.org/10.1109/TSE.2023.3267848)  \nGeneral rights  \nCopyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights.  \n• Users may download and print one copy of any publication from the public portal for the purpose of private study or research.  \n• You may not further distribute the material or use it for any profit-making activity or commercial gain  \n• You may freely distribute the URL identifying the publication in the public portal  \nTake down policy  \nIf you believe that this document breaches copyright please contact us providing details, and we will remove access to the work immediately and investigate your claim.  \nE-mail address:  \n[vuresearchportal.ub@vu.nl](vuresearchportal.ub@vu.nl)  \n[Download date: 19](Download date: 19) . Nov. 2026  \nJavaScript Dead Code Identiﬁcation, Elimination, and  \nEmpirical Assessment  \nIvano Malavolta , Member, IEEE, Kishan Nirghin, Gian Luca Scoccia , Simone Romano  ,  \nSalvatore Lombardi , Giuseppe Scanniello , Member, IEEE, and Patricia Lago, Senior Member, IEEE  \nAbstract—Web apps are built byusing a combination of HTML, CSS, and JavaScript. While building modern web apps, it is common practice to make use of third-party libraries and frameworks, as to improve developers’ productivity and code quality. Alongside these beneﬁts, the adoption of such libraries results in the introduction of JavaScript dead code, i.e., code implementing unused functionalities. The costs for downloading and parsing dead code can negatively contribute to the loading time and resource usage of web apps. The goal of our study is two-fold. First, we present Lacuna, an approach for automatically detecting and eliminating JavaScript dead code from web apps. The proposed approach supports both static and dynamic analyses, it is extensible and can be applied to any JavaScript code base, without imposing constraints on the coding style or on the use of speciﬁc JavaScript constructs. Second, by leveraging Lacuna we conduct an experiment to empirically evaluate the run-time overhead of JavaScript dead code in terms of energy consumption, performance, network usage, and resource usage in the context of mobile web apps. We applied Lacuna four times on 30 mobile web apps independently developed by third-party developers, each time eliminating dead code according to a different optimization level provided by Lacuna. Afterward, each different version of the web app is executed on an Android device, while collecting measures to assess the potential run-time overhead caused by dead code. Experimental results, among others, highlight that the removal of JavaScript dead code has a positive impact on the loading time of mobile web apps, while signiﬁcantly reducing the number of bytes transferred over the network.  \nIndex Terms—Dead code, JavaScript.  \nI. INTRODUCTION  \nWEB apps are built by using a combination of HTML,  \nCSS, and JavaScript. To increase developers’ productivit","cbCaiji0jcirZdOu","https://ap.wps.com/l/cbCaiji0jcirZdOu","pdf",2833982,24,"English","# Abstract\n# Introduction\n## Dead code in JavaScript web apps\n## Lacuna approach overview","[{\"question\":\"What problem does the paper address?\",\"answer\":\"It addresses the presence of JavaScript dead code introduced by third-party libraries and frameworks, which increases download/parsing costs and negatively impacts loading time and resource usage.\"},{\"question\":\"How does Lacuna detect and eliminate JavaScript dead code?\",\"answer\":\"Lacuna supports both static and dynamic analyses to automatically identify and remove dead code, and it is designed to be extensible without imposing constraints on coding style.\"},{\"question\":\"What does the empirical evaluation measure and conclude?\",\"answer\":\"The evaluation measures runtime overhead in terms of energy consumption, performance, network usage, and resource usage on Android devices; results indicate improved loading time and fewer bytes transferred over the network after dead code removal.\"}]","JavaScript Dead Code Identification, Elimination, and Empirical Assessment | PDF",[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/bc3b510056ea56793c5c08b327ffad8e.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/6786b1161fbd8e3261dd17836c2af329.webp",982,1309,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/5b5344005c8bd6fe52726a189cd534ba.webp",981,1308,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/abf4ca03bd0093c53a1b49a345ccb92c.webp",980,1306,{"list":162,"token":66},[163,170,177,183,190,196,202,209,215,221],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":40,"create_tm":169},143278,"COINDEF - A Comprehensive Code Injection Defense for the Electron Framework","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229867488058/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=iZpdnlLJCDGR%2BAu4NBAhL%2B5ySII%3D","coindef-a-comprehensive-code-injection-defense-for-the-electron-framework",21,1787694127,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":40,"create_tm":176},392186,"Smart AI Based Online Platform for Competitive Coding, Technical Interview, Assessments and Recruitment - Abstract & Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917726893/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=dAxKFKVUNlXqm37K2cYIVRLHxwM%3D","smart-ai-based-online-platform-for-competitive-coding-technical-interview-assessments-and-recruitment-abstract-introduction",11,1790363910,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":34,"category_name":40,"create_tm":182},489286,"LUCA DUMITRU - Front-End Developer - Profile","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926987440/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=mqKY4G2qNzbS4hqxdLpc66jfQK8%3D","luca-dumitru-front-end-developer-profile",1790821949,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":40,"create_tm":189},385829,"Prasanthi Resume - Product Designer","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229915917954/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=Zfe5T6UOfj4bRhP2XpxBHl7czZ0%3D","prasanthi-resume-product-designer",14,1790271139,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":44,"category_name":40,"create_tm":195},442143,"Oralcanreg registry: development and evaluation of an oral and lip squamous cell cancer registry","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924319828/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=DqUGhanv8zVpuXOqLMFsz%2Bkt0xM%3D","oralcanreg-registry-development-and-evaluation-of-an-oral-and-lip-squamous-cell-cancer-registry",1790699183,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":29,"category_name":40,"create_tm":201},489369,"Template-Based Runtime Invalidation for Database-Generated Web Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927232600/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=elUFULiZLNxOczYXVkPS1yzqS14%3D","template-based-runtime-invalidation-for-database-generated-web-contents",1790822468,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":40,"create_tm":208},294950,"Personality-Based Career Recommender System using Probability Approach - Article","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229904223807/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=obhPaU9CYAIkImiLQTh8KDpR%2FJo%3D","personality-based-career-recommender-system-using-probability-approach-article",17,1789711335,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":8,"category_name":40,"create_tm":214},755607,"How to Make Simple Text Effects with Work Skins - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230041437539/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=qDhl78JZd3IPJq31FrGFcDYRhrU%3D","how-to-make-simple-text-effects-with-work-skins-guide",1795755603,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":19,"category_name":40,"create_tm":220},692294,"From Component Snapshots to Lifecycle Traces - Agent-Based Software Composition Analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003191933/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=tBBUrghPy50tXp0MvPbwgQ3dbLs%3D","from-component-snapshots-to-lifecycle-traces-agent-based-software-composition-analysis",1794192632,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":19,"category_name":40,"create_tm":226},693066,"Enhancing SEO Compliance of JavaScript Web Frameworks through Automated Testing inside CI/CD Pipelines","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005067076/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=OILrzk05RuE32NdMnwsrc%2FLvboQ%3D","enhancing-seo-compliance-of-javascript-web-frameworks-through-automated-testing-inside-cicd-pipelines",1794247704]