Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8186387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:10:44+00:00 2026-06-07T02:10:44+00:00

I used to work with jQuery and was using jQuery LazyLoad Plugin http://www.appelsiini.net/projects/lazyload jQuery

  • 0

I used to work with jQuery and was using

  • jQuery LazyLoad Plugin http://www.appelsiini.net/projects/lazyload
  • jQuery Viewport Plugin http://www.appelsiini.net/projects/viewport

I’m now using zepto.js instead of jQuery and of Course now the plugins both through the following errors.

Uncaught ReferenceError: jQuery is not defined

If I update both plugins from })(jQuery); to })(Zepto); the following errors come up …

Uncaught TypeError: Cannot read property ‘:’ of undefined

Any ideas on that? Is it possible to make those plugins work with Zepto? Isn’t Zepto almost the same as Jquery just without older Browser Compatibility and additional Touch Events?

Thank you in advance.

Matt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T02:10:46+00:00Added an answer on June 7, 2026 at 2:10 am

    The line that is causing the error appears to be:

    .extend($.expr[':'], {
    

    jQuery uses its own CSS-style selector evaluator called Sizzle. In addition to letting you use $('#id .cls1 .cls2, #otherid') and standard CSS pseudo-selectors, it supports extension with custom selectors like the built-in :visible selector or the :above-the-fold selector provided by this plugin.

    Since modern mobile browser support the native document.querySelectorAll function for CSS selection, a library like Sizzle isn’t needed, saving a significant amount of JavaScript. (That’s why we love Zepto.) The side effect is that these custom selectors aren’t supported and $.expr doesn’t exist. Any line that depends on these, including that line in the plugin will fail.

    The good news is that these are convenience selectors and you may just be able to cut them out of your script. If you don’t want to find elements above and below the fold this way, you can just cut them out of the code. You will also need to address the line where the library calls $this.is(":visible") but other than that I don’t really see anything too jQuery-specific.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this code in my plugin used to work just fine: jQuery('#embedded_obj', context).get(0).getVersion(); and the
I have set up a JS slider using jquery at: http://jsfiddle.net/indigoclothing/H4MW9/21/ It works well
I am using jquery layout for the layout of my application. http://layout.jquery-dev.net/demos/complex.html I have
In an attempt to upgrade the jQuery plugin 'iCheckbox' (http://stackoverflow.com/questions/6032538/) to work above jQuery
I have created a nice tooltip box using JQuery and I used some plugin
I am using jQuery UI Autocomplete plugin for better data input in my ASP.NET
I am using Lazy Load Jquery plugin here on my test page: http://bloghutsbeta.blogspot.com/2012/03/testing-2_04.html And
I have used JQuery for a small animation work: a table #photos contains 9
I came across some javascript at work today that used jQuery to fetch two
So this used to work without a hitch but now I get a Socket

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.