{"id":38523,"date":"2019-10-31T22:24:17","date_gmt":"2019-10-31T19:24:17","guid":{"rendered":"https:\/\/prohoster.info\/blog\/istoriya-i-nasledie-jquery\/"},"modified":"2019-10-31T22:24:17","modified_gmt":"2019-10-31T19:24:17","slug":"istoriya-i-nasledie-jquery","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/news\/istoriya-i-nasledie-jquery","title":{"rendered":"Historia dhe trash\u00ebgimia e jQuery","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Historia dhe trash\u00ebgimia e jQuery\" src=\"\/wp-content\/uploads\/2019\/10\/beb7b33761181e6b478031cf1b85e6c6.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\njQuery \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/trends.builtwith.com\/javascript\/jQuery\">\u00ebsht\u00eb biblioteka m\u00eb e popullarizuar<\/a><\/noindex> n\u00eb bot\u00eb JavaScript. Komuniteti i zhvilluesve t\u00eb uebit e krijoi at\u00eb n\u00eb fund t\u00eb viteve 2000, gj\u00eb q\u00eb \u00e7oi n\u00eb krijimin e nj\u00eb ekosistemi t\u00eb pasur t\u00eb faqeve, plug-in-eve dhe fram\u00ebforkeve q\u00eb p\u00ebrdorin jQuery n\u00ebn kapak.<\/p>\n<p>Por n\u00eb vitet e fundit statusi i saj si mjeti kryesor p\u00ebr zhvillimin e uebit ka r\u00ebn\u00eb. Le t\u00eb shohim pse jQuery u b\u00eb e njohur dhe pse doli jasht\u00eb mode, si dhe n\u00eb cilat raste \u00ebsht\u00eb ende e arsyeshme ta p\u00ebrdorni at\u00eb p\u00ebr t\u00eb krijuar faqe moderne.<br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>Historia e shkurt\u00ebr e jQuery<\/h2>\n<p>\nJohn Resig (<noindex><a rel=\"nofollow\" href=\"https:\/\/johnresig.com\/\">John Resig<\/a><\/noindex>) krijoi versionin e par\u00eb t\u00eb bibliotek\u00ebs n\u00eb 2005-n, dhe <noindex><a rel=\"nofollow\" href=\"https:\/\/johnresig.com\/blog\/barcampnyc-wrap-up\/\">publikoi at\u00eb n\u00eb 2006-n<\/a><\/noindex>-n, n\u00eb nj\u00eb ngjarje t\u00eb quajtur BarCampNYC. N\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/web.archive.org\/web\/20060203025710\/http:\/\/jquery.com\/\">web-faqen zyrtare t\u00eb jQuery<\/a><\/noindex> autori shkroi:<\/p>\n<blockquote><p>jQuery \u00ebsht\u00eb nj\u00eb bibliotek\u00eb JavaScript, n\u00eb thelb t\u00eb cil\u00ebs q\u00ebndron parimi: Programimi n\u00eb JavaScript duhet t\u00eb jet\u00eb i k\u00ebndsh\u00ebm. jQuery merr detyra t\u00eb zakonshme, t\u00eb p\u00ebrs\u00ebritura, largohet nga gjith\u00eb markup-i i panevojsh\u00ebm dhe i b\u00ebn ato t\u00eb shkurt\u00ebr, elegante dhe t\u00eb kuptueshme.<\/p><\/blockquote>\n<p>\njQuery ka dy tipare kryesore. E para \u00ebsht\u00eb nj\u00eb API e leht\u00eb p\u00ebr manipulimin e faqeve t\u00eb internetit. N\u00eb ve\u00e7anti, ajo ofron metoda t\u00eb fuqishme p\u00ebr t\u00eb zgjedhur elemente. Mund t\u00eb zgjidhni jo vet\u00ebm sipas ID ose klasave, jQuery lejon t\u00eb shkruani shprehje t\u00eb komplikuara, p\u00ebr shembull, p\u00ebr t\u00eb zgjedhur elemente n\u00eb baz\u00eb t\u00eb marr\u00ebdh\u00ebnieve t\u00eb tyre me elemente t\u00eb tjera:<\/p>\n<pre><code class=\"javascript\">\/\/ Select every item within the list of people within the contacts element\n$('#contacts ul.people li');<\/code><\/pre>\n<p>\nMe kalimin e koh\u00ebs mekanizmi i zgjedhjes u shnd\u00ebrrua n\u00eb nj\u00eb bibliotek\u00eb t\u00eb ve\u00e7ant\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/sizzlejs.com\/\">Sizzle<\/a><\/noindex>.<\/p>\n<p>Tipari i dyt\u00eb i bibliotek\u00ebs ishte se ajo e abstragonte dallimin midis shfletuesve. N\u00eb ato vite ishte e v\u00ebshtir\u00eb t\u00eb shkruhej kod q\u00eb t\u00eb funksiononte n\u00eb m\u00ebnyr\u00eb t\u00eb besueshme n\u00eb t\u00eb gjith\u00eb shfletuesit. <\/p>\n<p>Mungesa e standardizimit do t\u00eb thoshte q\u00eb zhvilluesit duhet t\u00eb merrnin parasysh shum\u00eb dallime midis shfletuesve dhe raste t\u00eb kufizuara. Shikoni <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/daniellmb\/jquery-archive\/blob\/master\/jquery.2006-07-01.js\">k\u00ebto kodet e hershme t\u00eb jQuery<\/a><\/noindex> dhe k\u00ebrkoni p\u00ebr jQuery.browser. K\u00ebtu \u00ebsht\u00eb nj\u00eb nga shembujt:<\/p>\n<pre><code class=\"javascript\">\/\/ If Mozilla is used\nif ( jQuery.browser == \"mozilla\" || jQuery.browser == \"opera\" ) {\n        \/\/ Use the handy event callback\n        jQuery.event.add( document, \"DOMContentLoaded\", jQuery.ready );\n\n\/\/ If IE is used, use the excellent hack by Matthias Miller\n\/\/ http:\/\/www.outofhanwell.com\/blog\/index.php?title=the_window_onload_problem_revisited\n} else if ( jQuery.browser == \"msie\" ) {\n\n        \/\/ Only works if you document.write() it\n        document.write(\"&lt;scr\" + \"ipt id=__ie_init defer=true \" + \n                \"src=javascript:void(0)&gt;&lt;\/script&gt;\");\n\n        \/\/ Use the defer script hack\n        var script = document.getElementById(\"__ie_init\");\n        script.onreadystatechange = function() {\n                if ( this.readyState == \"complete\" )\n                        jQuery.ready();\n        };\n\n        \/\/ Clear from memory\n        script = null;\n\n\/\/ If Safari  is used\n} else if ( jQuery.browser == \"safari\" ) {\n        \/\/ Continually check to see if the document.readyState is valid\n        jQuery.safariTimer = setInterval(function(){\n                \/\/ loaded and complete are both valid states\n                if ( document.readyState == \"loaded\" || \n                        document.readyState == \"complete\" ) {\n\n                        \/\/ If either one are found, remove the timer\n                        clearInterval( jQuery.safariTimer );\n                        jQuery.safariTimer = null;\n\n                        \/\/ and execute any waiting functions\n                        jQuery.ready();\n                }\n        }, 10);\n}<\/code><\/pre>\n<p>\nDhe fal\u00eb jQuery, zhvilluesit mund t\u00eb kalonin shqet\u00ebsimet mbi t\u00eb gjitha k\u00ebto pengesa n\u00eb supet e ekipit q\u00eb zhvillonte bibliotek\u00ebn.<\/p>\n<p>M\u00eb von\u00eb jQuery e leht\u00ebsoi zbatimin e teknologjive m\u00eb t\u00eb komplikuara, si animacionet dhe Ajax. Biblioteka n\u00eb fakt u shnd\u00ebrrua n\u00eb nj\u00eb var\u00ebsi standarde p\u00ebr faqet e internetit. Dhe sot ajo mund\u00ebson funksionimin e nj\u00eb pjes\u00eb t\u00eb madhe t\u00eb internetit. W3Techs vler\u00ebson se <noindex><a rel=\"nofollow\" href=\"https:\/\/w3techs.com\/technologies\/details\/js-jquery\/all\/all\">74 % e faqeve sot p\u00ebrdorin jQuery<\/a><\/noindex>.<\/p>\n<p>Kontrolli mbi zhvillimin e jQuery gjithashtu u b\u00eb m\u00eb formal. N\u00eb 2011-n, skuadra <noindex><a rel=\"nofollow\" href=\"https:\/\/blog.jquery.com\/2011\/11\/18\/getting-board-of-jquery\/\">krijoi jQuery Board<\/a><\/noindex>. N\u00eb 2012-n, jQuery Board<noindex><a rel=\"nofollow\" href=\"https:\/\/blog.jquery.com\/2012\/03\/06\/announcing-the-jquery-foundation\/\"> u shnd\u00ebrrua n\u00eb jQuery Foundation<\/a><\/noindex>.<\/p>\n<p>N\u00eb vitin 2015, jQuery Foundation u bashkua me Dojo Foundation,<noindex><a rel=\"nofollow\" href=\"https:\/\/blog.jquery.com\/2015\/09\/01\/jquery-foundation-and-dojo-foundation-to-merge\/\"> p\u00ebr t\u00eb krijuar JS Foundation<\/a><\/noindex>, e cila m\u00eb pas u bashkua me Node.js Foundation n\u00eb<noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/@nodejs\/introducing-the-openjs-foundation-the-next-phase-of-javascript-ecosystem-growth-d4911b42664f\"> 2019<\/a><\/noindex>-n p\u00ebr t\u00eb krijuar<noindex><a rel=\"nofollow\" href=\"https:\/\/openjsf.org\/\"> OpenJS Foundation<\/a><\/noindex>, n\u00eb kuad\u00ebr t\u00eb cilit jQuery ishte nj\u00eb nga \"<noindex><a rel=\"nofollow\" href=\"https:\/\/openjsf.org\/projects\/#impact\">projektet pionier\u00eb<\/a><\/noindex>.\"<\/p>\n<h2>Rrethana t\u00eb ndryshueshme<\/h2>\n<p>\nMegjithat\u00eb, gjat\u00eb viteve t\u00eb fundit, jQuery <noindex><a rel=\"nofollow\" href=\"https:\/\/trends.google.com\/trends\/explore\/TIMESERIES\/1564319400?hl=en-US&amp;tz=240&amp;date=all&amp;geo=US&amp;q=jquery&amp;sni=3\">ka humbur pak popullaritetin e saj<\/a><\/noindex>. GitHub<noindex><a rel=\"nofollow\" href=\"https:\/\/github.blog\/2018-09-06-removing-jquery-from-github-frontend\/\"> e ka hequr bibliotek\u00ebn nga frontend-i i faqes s\u00eb tij<\/a><\/noindex>. Bootstrap v5 <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/twbs\/bootstrap\/pull\/23586\">do t\u00eb heq\u00eb dor\u00eb nga jQuery<\/a><\/noindex>, sepse kjo \u00ebsht\u00eb \"<noindex><a rel=\"nofollow\" href=\"https:\/\/blog.getbootstrap.com\/2019\/02\/11\/bootstrap-4-3-0\/\">var\u00ebsia m\u00eb e madhe klientore p\u00ebr JavaScript-in standard<\/a><\/noindex>\" (aktualisht me nj\u00eb madh\u00ebsi prej 30 KB, e minifikuar dhe e paketuar). Disa tendenca n\u00eb zhvillimin e uebit kan\u00eb dob\u00ebsuar pozitat e jQuery si nj\u00eb mjet t\u00eb nevojsh\u00ebm.<\/p>\n<h3>Shfletuesit<\/h3>\n<p>\nP\u00ebr disa arsye, ndryshimet dhe kufizimet e shfletuesve jan\u00eb b\u00ebr\u00eb m\u00eb pak t\u00eb r\u00ebnd\u00ebsishme. S\u00eb pari, standardizimi \u00ebsht\u00eb p\u00ebrmir\u00ebsuar. Zhvilluesit kryesor\u00eb t\u00eb shfletuesve (Apple, Google, Microsoft dhe Mozilla) punojn\u00eb s\u00eb bashku p\u00ebr t\u00eb zhvilluar<noindex><a rel=\"nofollow\" href=\"https:\/\/spec.whatwg.org\/\"> standartet e uebit<\/a><\/noindex> n\u00eb kuad\u00ebr t\u00eb<noindex><a rel=\"nofollow\" href=\"https:\/\/whatwg.org\/\"> Grupit t\u00eb Teknologjive t\u00eb Aplikuara Hypertext<\/a><\/noindex>.<br \/>\nMegjith\u00ebse shfletuesit ende dallojn\u00eb nga nj\u00ebri-tjetri n\u00eb disa aspekte t\u00eb r\u00ebnd\u00ebsishme, disponuesit tani kan\u00eb nj\u00eb mjet p\u00ebr t\u00eb gjetur dhe krijuar nj\u00eb baz\u00eb t\u00eb zakonshme n\u00eb vend t\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/thehistoryoftheweb.com\/browser-wars\/\">luft\u00ebs s\u00eb p\u00ebrhershme<\/a><\/noindex> nd\u00ebrmjet tyre. Si rezultat, API-t\u00eb e shfletuesve kan\u00eb fituar mund\u00ebsi t\u00eb reja. P\u00ebr shembull, <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Fetch_API\">Fetch API<\/a><\/noindex> ka mund\u00ebsi t\u00eb z\u00ebvend\u00ebsoj\u00eb funksionet Ajax nga jQuery:<\/p>\n<pre><code class=\"javascript\">\/\/ jQuery\n$.getJSON('https:\/\/api.com\/songs.json')\n    .done(function (songs) {\n        console.log(songs);\n    })\n\n\/\/ native\nfetch('https:\/\/api.com\/songs.json')\n    .then(function (response) {\n        return response.json();\n    })\n    .then(function (songs) {\n        console.log(songs);\n    });<\/code><\/pre>\n<p>\nMetodat <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document\/querySelector\">querySelector<\/a><\/noindex> dhe<noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document\/querySelectorAll\"> querySelectorAll<\/a><\/noindex> p\u00ebrs\u00ebritin mjetet e selektimit nga jQuery:<\/p>\n<pre><code class=\"javascript\">\/\/ jQuery\nconst fooDivs = $('.foo div');\n\n\/\/ native\nconst fooDivs = document.querySelectorAll('.foo div');<\/code><\/pre>\n<p>\nTani \u00ebsht\u00eb e mundur t\u00eb manipulohet me klasat e elementeve p\u00ebrmes <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Element\/classList\">classList<\/a><\/noindex>:<\/p>\n<pre><code class=\"javascript\">\/\/ jQuery\n$('#warning').toggleClass('visible');\n\n\/\/ native\ndocument.querySelector('#warning').classList.toggle('visible');<\/code><\/pre>\n<p>\nN\u00eb faqen ton\u00eb<noindex><a rel=\"nofollow\" href=\"http:\/\/youmightnotneedjquery.com\/\"> Mund T\u00eb Mos Keni Nevoj\u00eb P\u00ebr jQuery<\/a><\/noindex> jan\u00eb listuar disa situata t\u00eb tjera, n\u00eb t\u00eb cilat kodi jQuery mund t\u00eb z\u00ebvend\u00ebsohet me kodin natyror. Disa zhvillues gjithmon\u00eb q\u00ebndrojn\u00eb me jQuery, sepse thjesht nuk din\u00eb p\u00ebr API-t\u00eb e reja, por kur m\u00ebsojn\u00eb, fillojn\u00eb ta p\u00ebrdorin k\u00ebt\u00eb bibliotek\u00eb m\u00eb rrall\u00eb.<\/p>\n<p>P\u00ebrdorimi i mund\u00ebsive natyrale lejon p\u00ebrmir\u00ebsimin e performanc\u00ebs s\u00eb faqeve. Shum\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/api.jquery.com\/category\/effects\/\">efekte animacioni nga jQuery<\/a><\/noindex> tani mund t\u00eb realizohen<noindex><a rel=\"nofollow\" href=\"https:\/\/dev.opera.com\/articles\/css3-vs-jquery-animations\/\"> duke qen\u00eb shum\u00eb m\u00eb efikase<\/a><\/noindex> me an\u00eb t\u00eb CSS.<\/p>\n<p>Arsyeja e dyt\u00eb \u00ebsht\u00eb se shfletuesit p\u00ebrdit\u00ebsohen shum\u00eb m\u00eb shpejt se m\u00eb par\u00eb. N\u00eb shumic\u00ebn e tyre, aplikohet <noindex><a rel=\"nofollow\" href=\"https:\/\/www.techopedia.com\/definition\/31094\/evergreen-browser\">strategjia \"p\u00ebrgjat\u00eb gjith\u00eb koh\u00ebs\" e p\u00ebrdit\u00ebsimeve<\/a><\/noindex>, p\u00ebrve\u00e7 Apple Safari. Ato mund t\u00eb p\u00ebrdit\u00ebsohen n\u00eb sfond pa angazhimin e p\u00ebrdoruesit dhe nuk jan\u00eb t\u00eb lidhura me p\u00ebrdit\u00ebsimet e sistemit operativ.<\/p>\n<p>Kjo do t\u00eb thot\u00eb se mund\u00ebsit\u00eb e reja t\u00eb shfletuesve dhe rregullimet e defekteve shp\u00ebrndahen shum\u00eb m\u00eb shpejt, dhe zhvilluesit nuk duhet t\u00eb presin deri sa pjesa e <noindex><a rel=\"nofollow\" href=\"https:\/\/caniuse.com\/\">Can I Use<\/a><\/noindex> do t\u00eb arrij\u00eb nj\u00eb nivel t\u00eb pranuesh\u00ebm. Ata mund t\u00eb p\u00ebrdorin me besim funksionet dhe API-t\u00eb e reja pa shkarkuar jQuery ose polifil\u00eb.<\/p>\n<p>Arsyetimi i tret\u00eb \u00ebsht\u00eb se Internet Explorer po afrohet n\u00eb nj\u00eb gjendje plot\u00ebsisht t\u00eb pavler\u00eb. IE ka qen\u00eb prej koh\u00ebsh nj\u00eb tung\u00eb p\u00ebr zhvillimin e web-it n\u00eb t\u00eb gjith\u00eb bot\u00ebn. Gabimet karakteristike t\u00eb tij kan\u00eb qen\u00eb shum\u00eb t\u00eb p\u00ebrhapura, dhe pasi IE ka dominuar n\u00eb vitet 2000 dhe nuk ka p\u00ebrdorur strategjin\u00eb e p\u00ebrhershme t\u00eb p\u00ebrdit\u00ebsimit, deri tani shpesh hasen versionet e tij t\u00eb vjetra.<\/p>\n<p>N\u00eb vitin 2016, Microsoft p\u00ebrshpejtoi t\u00ebrheqjen e IE nga p\u00ebrdorimi, <noindex><a rel=\"nofollow\" href=\"https:\/\/www.microsoft.com\/en-us\/microsoft-365\/windows\/end-of-ie-support\">duke ndalur mb\u00ebshtetje<\/a><\/noindex> p\u00ebr versionin e dhjet\u00eb dhe m\u00eb t\u00eb hersh\u00ebm, duke u kufizuar n\u00eb mb\u00ebshtetje p\u00ebr IE 11. Dhe gjithnj\u00eb e m\u00eb shpesh zhvilluesit e webit mund t\u00eb lejojn\u00eb luksin p\u00ebr t\u00eb injoruar pajtueshm\u00ebrin\u00eb me IE.<\/p>\n<p>Madje jQuery ka ndalur mb\u00ebshtetje p\u00ebr IE 8 dhe m\u00eb posht\u00eb q\u00eb nga <noindex><a rel=\"nofollow\" href=\"https:\/\/blog.jquery.com\/2013\/04\/18\/jquery-2-0-released\/\">versioni 2.0<\/a><\/noindex>, i l\u00ebshuar n\u00eb vitin 2013. Dhe megjith\u00ebse n\u00eb disa raste ende k\u00ebrkohet mb\u00ebshtetje p\u00ebr IE, si n\u00eb rastet e faqeve t\u00eb vjetra, k\u00ebto situata po b\u00ebhen gjithnj\u00eb e m\u00eb t\u00eb pakta.<\/p>\n<h3>Fushat e reja<\/h3>\n<p>\nQ\u00eb nga shfaqja e jQuery, jan\u00eb krijuar shum\u00eb fushata, duke p\u00ebrfshir\u00eb lider\u00ebt modern\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/reactjs.org\/\">React<\/a><\/noindex>,<noindex><a rel=\"nofollow\" href=\"https:\/\/angular.io\/\"> Angular<\/a><\/noindex> dhe <noindex><a rel=\"nofollow\" href=\"https:\/\/vuejs.org\/\">Vue<\/a><\/noindex>. K\u00ebto kan\u00eb dy avantazhe t\u00eb r\u00ebnd\u00ebsishme p\u00ebrball\u00eb jQuery.<\/p>\n<p>S\u00eb pari, ato lejojn\u00eb ndarjen e leht\u00eb t\u00eb nd\u00ebrfaqes s\u00eb p\u00ebrdoruesit n\u00eb komponent\u00eb. Fushatat jan\u00eb projektuar p\u00ebr t\u00eb trajtuar vizatimin dhe p\u00ebrdit\u00ebsimin e faqes. Nd\u00ebrsa jQuery zakonisht p\u00ebrdoret vet\u00ebm p\u00ebr p\u00ebrdit\u00ebsim, duke i ngarkuar serverit detyr\u00ebn p\u00ebr t\u00eb ofruar faqen fillestare.<\/p>\n<p>N\u00eb an\u00ebn tjet\u00ebr, komponent\u00ebt React, Angular dhe Vue lejojn\u00eb nj\u00eb lidhje t\u00eb ngusht\u00eb mes HTML, kodit dhe madje CSS. Si\u00e7 ne ndajm\u00eb baz\u00ebn e kodit n\u00eb shum\u00eb funksione dhe klasa t\u00eb vet\u00eb-mjaftueshme, ashtu edhe mund\u00ebsia p\u00ebr t\u00eb ndar\u00eb nd\u00ebrfaqen n\u00eb komponent\u00eb t\u00eb rip\u00ebrdorsh\u00ebm e leht\u00ebson nd\u00ebrtimin dhe mb\u00ebshtetje t\u00eb faqeve t\u00eb komplikuara.<\/p>\n<p>Avantazhi i dyt\u00eb \u00ebsht\u00eb se fushatat m\u00eb t\u00eb reja ndjekin paradigmat deklarative, n\u00eb kuad\u00ebr t\u00eb s\u00eb cil\u00ebs zhvilluesi p\u00ebrshkruan se si duhet t\u00eb duket nd\u00ebrfaqja, dhe p\u00ebr realizimin e t\u00eb gjitha ndryshimeve t\u00eb nevojshme p\u00ebr t\u00eb arritur at\u00eb q\u00eb d\u00ebshirohet, e ngarkon fushata. Ky qasje \u00ebsht\u00eb n\u00eb kontrast me qasjen imperative q\u00eb karakterizon kodin jQuery.<\/p>\n<p>N\u00eb jQuery, ju sh\u00ebnoni hapat p\u00ebr t\u00eb b\u00ebr\u00eb ndonj\u00eb ndryshim. Nd\u00ebrsa n\u00eb nj\u00eb fushat\u00eb deklarative, ju thoni: \"Sipas k\u00ebtyre t\u00eb dh\u00ebnave, nd\u00ebrfaqja duhet t\u00eb duket k\u00ebshtu\". Kjo mund ta leht\u00ebsoj\u00eb shum\u00eb shkruan e kodit pa gabime.<\/p>\n<p>Zhvilluesit kan\u00eb adoptuar qasje t\u00eb reja n\u00eb zhvillimin e faqeve, \u00e7ka ka b\u00ebr\u00eb q\u00eb popullariteti i jQuery t\u00eb ulet.<\/p>\n<h2>Kur t\u00eb p\u00ebrdoret jQuery?<\/h2>\n<p>\nPra, kur <i>duhet <\/i>t\u00eb p\u00ebrdoret jQuery?<\/p>\n<p>N\u00ebse kompleksiteti i projektit do t\u00eb rritet, \u00ebsht\u00eb m\u00eb mir\u00eb t\u00eb filloni me nj\u00eb bibliotek\u00eb ose korniz\u00eb tjet\u00ebr q\u00eb mund\u00ebson menaxhim t\u00eb q\u00ebllimsh\u00ebm t\u00eb kompleksitetit. P\u00ebr shembull, t\u00eb ndahen interfacet n\u00eb komponente. P\u00ebrdorimi i jQuery n\u00eb k\u00ebto faqe n\u00eb fillim mund t\u00eb duket i pranuesh\u00ebm, por shum\u00eb shpejt do t\u00eb \u00e7oj\u00eb n\u00eb krijimin e kodit spageti, ku nuk do t\u00eb jeni t\u00eb sigurt se cili fragment ndikon n\u00eb cil\u00ebn pjes\u00eb t\u00eb faqes.<\/p>\n<p>Kam qen\u00eb n\u00eb nj\u00eb situat\u00eb t\u00eb till\u00eb, ku p\u00ebrpjekja p\u00ebr t\u00eb b\u00ebr\u00eb \u00e7far\u00ebdo ndryshimi krijon nj\u00eb ndjenj\u00eb sip\u00ebrmarrjeje t\u00eb v\u00ebshtir\u00eb. Nuk mund t\u00eb jeni t\u00eb sigurt se nuk do t\u00eb thyej asgj\u00eb, sepse selektor\u00ebt e jQuery varen nga struktura HTML, e krijuar nga serveri.<\/p>\n<p>N\u00eb an\u00ebn tjet\u00ebr jan\u00eb faqet e thjeshta, q\u00eb k\u00ebrkojn\u00eb vet\u00ebm pak gjithnj\u00eb e m\u00eb shum\u00eb interaktivitet ose p\u00ebrmbajtje dinamike. N\u00eb raste t\u00eb tilla, nuk do t\u00eb doja t\u00eb p\u00ebrdorja jQuery, sepse me API natyrore mund t\u00eb b\u00ebhet shum\u00eb m\u00eb tep\u00ebr.<\/p>\n<p>Edhe n\u00ebse m\u00eb nevojitet di\u00e7ka m\u00eb t\u00eb fuqishme, do t\u00eb k\u00ebrkoj nj\u00eb bibliotek\u00eb t\u00eb specializuar, p\u00ebr shembull, <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/axios\/axios\">axios<\/a><\/noindex> p\u00ebr Ajax ose<noindex><a rel=\"nofollow\" href=\"https:\/\/daneden.github.io\/animate.css\/\"> Animate.css<\/a><\/noindex> p\u00ebr animacione. Do t\u00eb ishte m\u00eb e leht\u00eb sesa t\u00eb ngarkoja t\u00eb gjith\u00eb jQuery p\u00ebr nj\u00eb funksionalitet t\u00eb vog\u00ebl.<\/p>\n<p>Mendoj se arsyetimi m\u00eb i mir\u00eb p\u00ebr p\u00ebrdorimin e jQuery \u00ebsht\u00eb se ajo ofron funksionalitet t\u00eb gjithansh\u00ebm p\u00ebr pun\u00ebn n\u00eb frontin e faqes. N\u00eb vend q\u00eb t\u00eb studioni m\u00eb shum\u00eb API natyrore ose biblioteka t\u00eb specializuara, mund t\u00eb lexoni vet\u00ebm dokumentacionin e jQuery dhe do t\u00eb b\u00ebheni menj\u00ebher\u00eb produktiv.<\/p>\n<p>Qasja imperativ \u00ebsht\u00eb e v\u00ebshtir\u00eb p\u00ebr t'u zgjatur, por \u00ebsht\u00eb m\u00eb e leht\u00eb p\u00ebr t'u m\u00ebsuar se qasja deklarative e biblioteka t\u00eb tjera. P\u00ebr nj\u00eb faqe me mund\u00ebsi t\u00eb qarta t\u00eb kufizuara \u00ebsht\u00eb m\u00eb mir\u00eb t\u00eb p\u00ebrdorni jQuery dhe t\u00eb punoni qet\u00eb: biblioteka nuk k\u00ebrkon ndonj\u00eb nd\u00ebrlikim ose kompilim t\u00eb v\u00ebshtir\u00eb.<\/p>\n<p>P\u00ebr m\u00eb tep\u00ebr, jQuery \u00ebsht\u00eb e mir\u00eb n\u00eb ato raste kur jeni t\u00eb sigurt se faqja nuk do t\u00eb komplikoj\u00eb n\u00eb t\u00eb ardhmen, dhe n\u00ebse nuk ju shqet\u00ebson funksionaliteti natyror, i cili, me siguri, do t\u00eb k\u00ebrkoj\u00eb m\u00eb shum\u00eb kode se jQuery.<\/p>\n<p>Gjithashtu, mund ta p\u00ebrdorni k\u00ebt\u00eb bibliotek\u00eb n\u00ebse duhet t\u00eb mb\u00ebshtesni versione t\u00eb vjetra t\u00eb IE. At\u00ebher\u00eb jQuery do t'ju sh\u00ebrbej\u00eb si n\u00eb koh\u00ebn kur IE ishte shfletuesi m\u00eb i njohur.<\/p>\n<h2>Shikimi n\u00eb t\u00eb ardhmen<\/h2>\n<p>\njQuery nuk do t\u00eb largohet shum\u00eb shpejt. Ajo <noindex><a rel=\"nofollow\" href=\"https:\/\/github.com\/jquery\/jquery\">po zhvillohet aktivisht<\/a><\/noindex>, dhe shum\u00eb zhvillues preferojn\u00eb t\u00eb p\u00ebrdorin API e saj, edhe me disponueshm\u00ebrin\u00eb e metodave natyrore. Biblioteka ndihmoi nj\u00eb gjenerat\u00eb t\u00eb t\u00ebr\u00eb zhvilluesish q\u00eb t\u00eb krijojn\u00eb faqe q\u00eb funksionojn\u00eb n\u00eb \u00e7do shfletues. Dhe megjith\u00ebse n\u00eb shum\u00eb aspekte e kan\u00eb z\u00ebvend\u00ebsuar biblioteka t\u00eb reja, framework-e dhe paradigma, jQuery ka luajtur nj\u00eb rol t\u00eb madh pozitiv n\u00eb krijimin e internetit modern.<\/p>\n<p>N\u00ebse funksionaliteti i jQuery nuk do t\u00eb ndryshoj\u00eb shum\u00eb, \u00ebsht\u00eb shum\u00eb e mundshme q\u00eb n\u00eb disa vitet e ardhshme p\u00ebrdorimi i bibliotek\u00ebs do t\u00eb vazhdoj\u00eb t\u00eb zvog\u00eblohet ngadal\u00eb, por me siguri. Website-et e reja, zakonisht, krijohen q\u00eb n\u00eb fillim duke p\u00ebrdorur framework-e m\u00eb moderne, dhe skenar\u00ebt e p\u00ebrshtatsh\u00ebm p\u00ebr p\u00ebrdorimin e jQuery po shfaqen gjithnj\u00eb e m\u00eb rrall\u00eb.<\/p>\n<p>Ndonj\u00ebher\u00eb disa njer\u00ebz nuk e p\u00eblqejn\u00eb intensitetin e mosh\u00ebs s\u00eb pak\u00ebt t\u00eb mjet\u00ebve p\u00ebr zhvillimin e uebit, por p\u00ebr mua kjo \u00ebsht\u00eb nj\u00eb d\u00ebshmi e progresit t\u00eb shpejt\u00eb. jQuery na lejoj\u00eb t\u00eb b\u00ebm\u00eb shum\u00eb m\u00eb mir\u00eb. E nj\u00ebjta vlen edhe p\u00ebr pasardh\u00ebsit e saj.<br \/>\n<br \/>Burimi: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/mailru\/blog\/468169\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>jQuery \u2014 \u044d\u0442\u043e \u0441\u0430\u043c\u0430\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0430\u044f \u0432 \u043c\u0438\u0440\u0435 JavaScript-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430. \u0421\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u043b\u043e \u0435\u0451 \u0432 \u043a\u043e\u043d\u0446\u0435 2000-\u0445, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044e \u0431\u043e\u0433\u0430\u0442\u043e\u0439 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u0430\u0439\u0442\u043e\u0432, \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c jQuery. \u041d\u043e \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0433\u043e\u0434\u044b \u0435\u0451 \u0441\u0442\u0430\u0442\u0443\u0441 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u043e\u0448\u0430\u0442\u043d\u0443\u043b\u0441\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043f\u043e\u0447\u0435\u043c\u0443 jQuery \u0441\u0442\u0430\u043b\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u0430 \u0432\u044b\u0448\u043b\u0430 \u0438\u0437 \u043c\u043e\u0434\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":28907,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-38523","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"jQuery \u2014\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/news\/istoriya-i-nasledie-jquery\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u0435 jQuery | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"jQuery \u2014\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/news\/istoriya-i-nasledie-jquery\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:24:17+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:24:17+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Historia dhe trash\u00ebgimia e jQuery | ProHoster","description":"jQuery \u2014","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/news\/istoriya-i-nasledie-jquery","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u0435 jQuery | ProHoster","og:description":"jQuery \u2014","og:url":"https:\/\/prohoster.info\/sq\/blog\/news\/istoriya-i-nasledie-jquery","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:24:17+00:00","article:modified_time":"2019-10-31T19:24:17+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"38523","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-23 22:22:33","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:07:40","updated":"2026-01-23 22:22:33","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/38523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=38523"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/38523\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media\/28907"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=38523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=38523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=38523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}